Posts under category Facebook Graph API

I'm currently working on a side project using the Meta Threads API. I'm trying to use the Media Insights API to build a feature that retrieves daily insights. However, even when I include the since and until parameters, the response always returns the same data—it only gives me the current insight values.

The image below is a screenshot from my side project.

screenshot of my work

Here’s the URL and parameters I’m using:

I also tried using the since and until parameters with the YYYY-MM-DD format, but it still returns the same result. For example:

  • since: 2024-09-13
  • until: 2024-09-14

Am I missing something, or is this an API bug? Any help would be greatly appreciated!

I wanted to see the daily changes in metrics like views, likes, and replies.

I am currently developing an app that interacts with Facebook Page content and messages using Facebook webhooks to receive event notifications when users engage with the page.

While I’ve successfully set up and received webhooks for most events, such as page messages and feed comments, I’m experiencing an issue where the webhook is not triggered when someone posts a comment that contains a video or GIF. It seems Facebook doesn’t send any event notifications when these types of media are included in the comment except PHOTO.

I’ve noticed other developers have reported similar issues in these threads, but there is no clear solution:

My goal: I need to capture comments that contain videos, GIFs, or stickers as soon as they are published. Actively polling for comments using the Graph API is not an ideal solution due to rate limits and the need for near real-time behavior.

Question: Has anyone found a solution or workaround for receiving these types of comments (with videos, GIFs, or stickers) in real-time using Facebook’s webhooks? Is there any other method to capture them efficiently without constantly querying the Graph API?

Any help or guidance would be greatly appreciated!

A few weeks ago, our app was approved with the following permissions:

instagram_business_manage_messages, instagram_manage_comments, instagram_manage_messages, instagram_business_manage_comments

and this is our login url with scopes, example -

https://www.instagram.com/oauth/authorize?third_party=re&client_id=867763&redirect_uri=oauth%2Fcallback&response_type=code&scope=business_basic%2Cbusiness_manage_messages%2Cbusiness_manage_comments%2Cbusiness_content_publish 

Our use case is as follows: when someone comments on our post with a matching keyword specified in our backend, we send a reply to that comment and simultaneously send a direct message (DM) to the user.

However, we're facing an issue where only 1 out of 100 comments successfully sends both the comment reply and DM. In other cases, the comment replies are sent consistently, but the DM fails with the error: "This message is sent outside of allowed window." This occurs 99% of the time.

Given that we have access to the Business API, we are unsure why we are facing this issue. Could you please advise?

this is the

error: {   error: {     message: 'This message is sent outside of allowed window.',     type: 'IGApiException',     code: 10,     error_subcode: 2534022,     fbtrace_id: 'ASeWzBS_LCXn'   } } 

same error code mentioned on fb docs https://developers.facebook.com/docs/messenger-platform/error-codes

We tried with different multiple accounts but same error, but when a user first sends a message to owner of insta post then again comments on post then it sending comment and dm successfully.

We have thousands of clients who want us to run their Facebook Pages for them and we have a big problem because we can only send 6 requests. For each next request we have to either wait for one of the clients to approve their request or to delete some of the old requests in order to send more. Is there a possibility to increase this limit in some way?
This is endpoint we use for sending requests: POST https://graph.facebook.com/v19.0/{business-id}/client_pages

Dear Developers,
We are currently using the Facebook API to support our company's services. Recently, we have been receiving notifications in the developer console indicating that we need to upgrade our Facebook Graph API version (*1). At present, our app is utilizing version 14.0, and since the support for this version will end on September 17, 2024, we are required to upgrade to v15.0 or higher.
However, when we checked the API Upgrade Tool in the developer console, it shows a message (*2) stating that there are no changes or available upgrades between v14.0 and v20.0. This has made it difficult for us to proceed with upgrading the API version on our own, as the tool does not provide any guidance on how to perform the migration.
We would greatly appreciate your advice or guidance on the following:
How should we proceed with upgrading to v15.0 or higher in light of the message in the API Upgrade Tool? Are there any specific steps we should follow to ensure a smooth transition and avoid potential service disruptions? Your expertise and assistance would be highly valuable to us as we navigate this situation.
Thank you in advance for your help.
(*1)Your App is currently accessing Graph API v14.0 which will reach the end of its 2-year lifetime on 17 September, 2024. We estimate 5 endpoints that calls will be impacted by this change and may stop working after the automatic upgrade push. To ensure a smooth transition, please migrate all calls to Graph API v15.0 or higher. Use the API Upgrade Tool to understand exactly how this change will impact your app.
Note: If you do not see any impacted calls in the API Upgrade Tool, your app/code may not be affected by this upgrade.
Visit our changelog to see the full list of changes in all Graph API versions.
(*2)Your app has no changes for the methods you selected between v14.0 and v20.0