There are comments missing from instagram API response. There are about 5 comments for a post, but only one of them is coming in API.
Related
I'm trying to create an app in which I would like to display user feeds from social media apps like Instagram. I want the data to be as live as possible so I tried to integrate Instagram Webhooks. I have created a server side application with Instagram's authentication and a callback url for webhooks through which I want to fetch data from Instagram and then store it in a database.
I have been going through the Official documentation. I was able to get User id, name, comments through Instagram API and I have also subscribed Instagram's webhooks in my meta developer's application. It didn't throw any error but when I like or comment on my post I couldn't get any object in the callback URL. I'm completely new to this so It would be great if someone could explain me how to do this?
I'm trying to set up a service for Instagram which is triggered by a new post of a subscribed user (want to setup a webhook for this). It will then put some comment underneath that new post.
But is it even possible to configure such a webhook? It looks like you can only subscribe to a users mention or story expiration. I'm not sure if this is possible or that i should user the previous Instagram API instead.
I'm clueless.
Thanks in advance
I wouldn't advise using the old Instagram API as it will be fully deprecated next year. As you said, Instagram Graph API webhooks don't provide this functionality (yet)? One possible solution may be to periodically call the media endpoint for an Instagram business account. This call includes the timestamp:
<INSTAGRAM_BUSINESS_ACCOUNT_ID>/media?fields=timestamp
Then, when you see a new post, you can act accordingly.
I am using new Instagram Graph APIs for my application, I am interested in knowing if there is any way I can get profile information about the user who comments on my Instagram posts and what are possible ways to get the direct message exchanging with those users, as far I found that Instagram Graph APIs do not provide any direct messaging support for now, though I found some private APIs but these are not reliable as they can be restricted any time in future.
So all I need is to get those user`s information who commented on my Posts ie- I get only comment_id from the web-hook request from Instagram Graph APIs but when using that comment I try to get its owner/user it does not return any user information except username.
Any help is highly appreciated.
Thank you!
try this endpoint:
v3.0/{comment_id}?fields=id,timestamp,username,text
How can I fetch other users media through Instagram API, I can easily fetch my media through API. But how can I fetch others users. For fetching my medias I am using
$url = 'https://api.instagram.com/v1/users/self/media/recent/?access_token=' . $token;
But when I try to others users media through username it gives no result.I have also replace "self" with username.But getting no result. I tried many solutions. Is there any way on this planet to get others users media from my access token.
This API deprecated by instagram to fetching other's content.
Here is the detail from Instagram:-
Commenting on Public Content
GET /media/{media-id}/comments (Deprecation not relevant when fetching comments for self media)
POST /media/{media-id}/comments
DEL /media/{media-id}/comments/comment-id
For more details, you can go to page, This is effective from 4th April.
https://www.instagram.com/developer/changelog/
I want to access and retrieve a user's Stories post from Instagram using their Dev API.
I tested after posting a story myself by using https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS-TOKEN.
However, that returns an empty object unless I post a regular post.
As far as I am aware the Instagram API does not currently return Stories.
The example response in the documentation for the media endpoint, for example, shows responses for Images, Videos and Carousel items only. The recent media end point documentation doesn't go into much detail on responses.
Media End Point Documentation
It is available only for Instagram Business Account.
See this link for more information: https://developers.facebook.com/docs/instagram-api/reference/user/stories/
The id returned by this endpoint can be used on the same API media endpoint.