totemstech / instagram-node

NodeJS driver for the instagram API
649 stars 122 forks source link

Is add_tag_subscription still supported? #109

Open lukechilds opened 7 years ago

lukechilds commented 7 years ago

I'm trying to subscribe to new hashtag posts. It looks like this should be supported with add_tag_subscription however I always get an APISubscriptionError.

> ig.add_tag_subscription('test', 'https://requestb.in/1i1e0fi1', console.log)
undefined
> { Error: APISubscriptionError: Unable to reach callback URL "https://requestb.in/1i1e0fi1".
    at handle_error (/Users/lukechilds/Dev/laserred/projects/show-tell-instagram/node_modules/instagram-node/lib/instagram.js:242:19)
    at /Users/lukechilds/Dev/laserred/projects/show-tell-instagram/node_modules/instagram-node/lib/instagram.js:1588:16
    at IncomingMessage.<anonymous> (/Users/lukechilds/Dev/laserred/projects/show-tell-instagram/node_modules/instagram-node/lib/instagram.js:197:18)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
  code: 400,
  error_type: 'APISubscriptionError',
  error_message: 'Unable to reach callback URL "https://requestb.in/1i1e0fi1".',
  retry: [Function: retry] }

https://requestb.in/1i1e0fi1 never gets hit.

The subscription docs linked to in your readme have been removed: https://www.instagram.com/developer/realtime/

However this page still exists on the IG docs: https://www.instagram.com/developer/subscriptions/

Although it doesn't mention anything about tags, just users.

So is add_tag_subscription still supported? Am I doing something stupid or has Instagram dropped this support from their API?

tuancg93 commented 6 years ago

@lukechilds did you fix this me too . help me

lukechilds commented 6 years ago

@tuancg93 sorry, no I didn't. I needed a quick solution so resorted to just polling the API and checking if the latest post had changed.

tuancg93 commented 6 years ago

@lukechilds yes. i didn't subcription app and page My error : APISubscriptionError", "error_message": "Challenge verification failed