Posts under category Facebook Instagram Graph API

We've noticed that the stories edge in the instagram graph api doesn't return caption of one of our users.
What is the cause for that? How can we make sure captions are returned if they exists?
Here's one that works as expected: https://developers.facebook.com/tools/explorer/1711491999340574/?session_id=362254336516001
Here's one that doesn't return the caption: https://developers.facebook.com/tools/explorer/1711491999340574/?session_id=355829733891550

In some accounts requesting only media_count for the profile returns: "An unknown error occurred" or "Please reduce the amount of data you're asking for, then retry your request".
This does not happen with all the users, for what i could found it only happens with accounts with a lot of posts like: resiliencia_humana, cabronazi.
Query:
business_discovery.username(resiliencia_humana){media_count}

For our Facebook App, we have followed the below URL for getting access tokens for Instagram Business User/Creator
https://developers.facebook.com/docs/instagram/business-login-for-instagram/
After getting a short lived token, we exchanged that for a long lived token. The token debugger tool as well as token debug api shows Expires value for these tokens as 0 (Never).
However we have a substantial quantity of users for which when we are trying to query the Media, we are getting the following error (Around 10% of our connected Users)
"Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons."
Is it possible that 10% of our users (around 700-800) could have changed their Instagram password ?
The long lived token documentation says that :
"When you use the iOS, Android, or JavaScript SDK, the SDK will automatically refresh tokens if the person has used your app within the last 90 days. Native mobile apps using Facebook's SDKs get long-lived User access tokens, good for about 60 days. These tokens are refreshed once per day, when the person using your app makes a request to Facebook's servers. If no requests are made, the token will expire after about 60 days and the person will have to go through the login flow again to get a new token."
We are not using any SDK. Neither for authentication, nor for fetching Media. Mostly communicating with Facebook using REST API to graph.facebook.com utilizing the access_token.
The login flow is standard through our React App. No SDK. Just JS and URL redirect and stuff.
"These tokens are refreshed once per day, when the person using your app makes a request to Facebook's servers".
What does the above statement mean ?
If I make a call to Facebook Graph API (through REST API) using stored user Access token to fetch media, once every 90 days, does that satisfy above requirement ?
Do I need to use any SDK (JS/Python) to fetch Media, once every 90 days ?

Hello all, Since a couple of weeks, when fetching the plays for a reel, the api is only giving us the "initial plays" metric and not the total plays = initial plays + replays, which is consistent with the documentation but not with recent changes in the app and business meta suite where now the main metrics are the plays. Do you know when those metrics would be available through the API ? Thanks

I added permissions and assets on screenshot.
When I hover the caption fields this message appears: "Field is empty or disallowed by the access token"
Is this is bug or something else? This error appear after the 2024-01-05. Before the 2024-01-05 I was read caption fields.
request url:
[ID]/stories?fields=id,comments_count,like_count,media_product_type,media_type,media_url,timestamp,caption
response:
{
"data": [
{
"id": "...",
"comments_count": 0,
"like_count": 0,
"media_product_type": "STORY",
"media_type": "VIDEO",
"timestamp": "2024-01-16T16:35:15+0000"
},
{
"id": "...",
"comments_count": 0,
"like_count": 0,
"media_product_type": "STORY",
"media_type": "IMAGE",
"media_url": "https://scontent.cdninstagram.com/v/...",
"timestamp": "2024-01-16T11:42:38+0000"
},
{
"id": "...",
"comments_count": 0,
"like_count": 0,
"media_product_type": "STORY",
"media_type": "IMAGE",
"media_url": "https://scontent.cdninstagram.com/v/t51...",
"timestamp": "2024-01-16T11:41:07+0000"
},
{
"id": "...",
"comments_count": 0,
"like_count": 0,
"media_product_type": "STORY",
"media_type": "VIDEO",
"media_url": "https://scontent.cdninstagram.com/o1/...",
"timestamp": "2024-01-16T10:44:49+0000"
}
],
"paging": {
"cursors": {
"before": "...",
"after": "..."
}
}
}