Posts tagged with facebook-graph-api

I am trying to use the Graph API to post a link (URL) to a Facebook page, using PHP and the cURL library. I am able to request a scrape with no issues. But when I try to post my URL to the page, I get the error:

(#100) Specifying multiple ids with a post method is not supported 

I believe that I have the correct scopes to post to my page, per the page Access Token:

email public_profile pages_show_list pages_read_engagement pages_manage_posts 

And it's the token for the page I am trying to post to. The URL that I'm pushing through cURL is (URL and MESSAGE are url-encoded):

$request_url =        https://graph.facebook.com/<PAGE-ID>/?id=<URL-TO-POST>&message=MESSAGE&access_token=<PAGE-TOKEN>; 

And I'm using pretty simple curl commands:

$handle = curl_init(); $curl_options = [                     CURLOPT_URL            => $request_url,                      CURLOPT_RETURNTRANSFER => true,                      CURLOPT_VERBOSE        => false,                      CURLOPT_POST           => true,                 ]; } curl_setopt_array($handle, $curl_options); $raw_data = curl_exec($handle); curl_close($handle); 

But the results I get from this call:

[error] => stdClass Object  (     [message] => (#100) Specifying multiple ids with a post method is not supported     [type] => OAuthException     [code] => 100     [fbtrace_id] => Av1ZYcuRG0hNE2KZUl94eEv  ) 

Am I using the correct URL to post? Are there missing arguments?

I'm having an issue with adding new products to my Facebook catalog that is integrated with the WhatsApp Business API. I have an existing catalog with products that are successfully being sent through the WhatsApp API. However, when I try to add new products, either manually or through a data feed, I receive the error message "None of the products provided could be sent. Please check your catalog."

i recently add commerce API to my app and it inactive but i can't remove it to check if this what cause the error.

Despite these efforts, the new products still cannot be sent through the WhatsApp API, while the existing/old products in the catalog work fine.

I've tried the following steps:

  1. Manually adding new products to the catalog through Facebook Business Manager.

  2. Creating a new product data feed and uploading it to the catalog.

  3. Adding new products to both an existing catalog and creating a new catalog.

  4. Waiting for 24 hours after adding the new products for the catalog to update.

Has anyone else encountered this issue or have any suggestions on troubleshooting steps I can take? I'm unsure if this is an issue with the product data, the catalog settings, or something else entirely.

Since there is no official support of the Graph API in Python, and I don't want to use unofficial libraries, can someone tell me how to write the code to use it in Python?

I tried to search for ways to write code in Python but the results I'm getting are unofficial libraries. I'll have to write the code manually.

I am trying to set up an Instagram Graph API integration.

The problem in short: when trying to query the GET /me/accounts endpoint, i get an empty data list (pages list). And that makes me unable to continue with data fetching (beacuse I need his instagram user id).

Details:

  • My instagram app is not live yet, still in development (yet to go through app review process)
  • Im trying to do it with an access token of a friend (for my account it works). I think I completed all the prerequisites for that to be possible: added his developer account as a developer in my app, he connected the instagram account to the facebook page, i got the access token with the following permissions: instagram_basic,pages_show_list,pages_read_engagement,instagram_manage_insights
  • The same flow works for my account
  • The same result received when using the Graph API Explorer
  • Im basically trying to set up with those two guides (tried both ways, still empty list): https://developers.facebook.com/docs/instagram-api/getting-started and https://developers.facebook.com/docs/instagram/business-login-for-instagram

I'm trying to update my Lead Values using the API. I only use server side to send first party data, the thing is that I need to readjust the values of these leads the first days / weeks, and there isn't any mechanism that I see to do so.

The only most logical way would be to send same events with same event_id and Facebook deduplicates or updates the event to the most recent one. But the documentation states the following:

"Does not deduplicate events when only using one event source, that is browser-only or server-only. If you send us two consecutive browser events with the same information, we do not discard either. If you send us two consecutive server events with the same information, we do not discard either."

Would be there any way to delete / update events with more fresh data? Don't want to send my Leads with a lot of delay of the time event.

I'm sending events with the first value I have on my BD, but it is not 100% accurate over time.