Posts under category Facebook Graph API

I'm facing an issue with the Instagram Graph API where the ID in the webhook data doesn't match the ID returned from the /me endpoint.

I use the /me endpoint to get the Instagram Business ID:

https://graph.instagram.com/me?fields=id,username

This returns 12345 and my username.

When an Instagram user sends a message, the webhook data contains a different recipient ID (67890), which doesn't match the stored ID (12345).

Example Webhook:

{   "object": "instagram",   "entry": [     {       "time": 67890,       "id": "12345400796128930",       "messaging": [         {           "sender": { "id": "981149143905198" },           "recipient": { "id": "67890" },           "timestamp": 1735516966810,           "message": {             "mid": "1bfkwjeb1jk43b1jk43bkj",             "text": "hello hello"           }         }       ]     }   ] } 

The recipient ID (67890) corresponds to the user who authorized my app but is not the same as the ID from the /me endpoint.

Is Instagram sending an ID that can't be looked up via the access token? This ID (67890) is persistent across multiple webhook requests.

Hello,
I am encountering an error when trying to send a message using the WhatsApp Business API. The error message states:
Sending of message failed. Unsupported post request. Object with ID '528471650346337' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api Here are the steps I followed to set up the phone number:
1- I added the phone number through the WhatsApp API setup. Verified the number by entering the code I received.
2-Added the phone number to my WhatsApp Business Account in the Meta Business Manager. The phone number status is now marked as "Pending."
3-I registered the number using the /register endpoint: POST https://graph.facebook.com/v21.0/528471650346337/register
The registration was successful without any errors. When I tried to send a message using the /messages endpoint, I received the above error. I am unsure what is causing this issue. Could it be:
Missing permissions for the access token I’m using? Misconfiguration of the phone number in my WhatsApp Business Account? An issue with the object ID or my API call setup? Here’s the API request I used to send the message:
curl -X POST "https://graph.facebook.com/v21.0/528471650346337/messages" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "messaging_product": "whatsapp", "to": "", "type": "text", "text": { "body": "Hello, this is a test message!" } }' Could someone help me troubleshoot this issue? Do I need additional permissions or configurations for the phone number to work correctly?
Thank you in advance!

Hi everyone,
I'm integrating the Instagram API into my iOS app to enable users to share prepopulated content directly to Instagram Stories. I have successfully implemented a button that shares the background of the post, but I'm struggling with including a link that automatically gets copied to the clipboard and appears on a sticker, similar to what apps like NGL: ask me anything do.
Does anyone know how to automatically include a link in the story content that users can share? Specifically, I'm looking for guidance on whether there's an application process or specific permissions required to enable this feature. I haven't been able to find documentation related to this functionality.
Any advice on where to start or what steps to follow would be greatly appreciated!

I want to create an API to basically call conversion API based on the

  1. to user access token through embedded signup
  2. manually select event type
  3. get the pages which the user will select through the access token the above are all working properly, but now I also want to get the pixels based on the page selected so I have the page id, access_token but I am unable to get any API that gives me the pixels as per the page.

I have tried:

  1. https://graph.facebook.com/v21.0/me/adaccounts?fields=business_name,name,account_status,balance,currency,adspixels{name,code},amount_spent,min_daily_budget,insights&access_token=

    But it returns me: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api"

  2. https://graph.facebook.com/v21.0/ad_account_id/adspixels

    but in this I have manually added the ad account id and it still didn't work, but I want to be able to call it dynamically.