Reputation: 2044
I have two streaming subscriptions with the Instagram API. One for type user
and the second for type tag
. Specifically, I'm using the tag nofilter.
For the user subscription, my server receives the following json from Instagram:
[ { changed_aspect: 'media',
object: 'user',
object_id: '99999999',
time: 1447441353,
subscription_id: 99999999,
data: { media_id: '0000000000642770215_000000000' } } ]
For the nofilter tag subscription, my server receives the following json from Instagram. Why is this missing media_id
?
[ { changed_aspect: 'media',
object: 'tag',
object_id: 'nofilter',
time: 1447442900,
subscription_id: 20700000,
data: {} } ]
Does anyone know why the data attribute in the tag subscription is empty? Shouldn't it contain a media_id
property and value?
Upvotes: 1
Views: 952
Reputation: 2044
The documentation for tag subscriptions is no longer available. It appears only user subscriptions are available now. https://instagram.com/developer/subscriptions/
You can see the now deprecated documentation here. https://instagram.com/developer/deprecated/realtime/
Regardless, for reference, tag subscriptions are only a notification which you then need to query the tags endpoint to retrieve actual data.
Instagram Real time updates tag - getting empty data, why?
Upvotes: 2