Posts tagged with facebook-graph-api

I'm developing a React Native Expo app, and I'm using the Facebook Graph API to fetch videos from my Facebook page and stream them within the app using WebView. However, I'm encountering an issue where I sometimes receive two different versions of the videos when making the same API call. This inconsistency is causing confusion, and I can't determine the root cause.

When I fetch the videos using the Graph API and display them in a WebView, I sometimes get two different versions of the same video content. This inconsistency is not predictable, and I can't figure out why it's happening.

Every thing works but the end result it changes randomly(how the videos gets displayed)

Image1: This version i Like it

Image2: This one is not so much

The first one lets me change the quality and play the video in that screen, while the second one goes into fullscreen mode when clicked and plays the videos with no additional controls

Today, I see the endpoint https://developers.facebook.com/docs/graph-api/reference/v20.0/location that retrieves the location of my own page. Is there any way to obtain the location of third-party users, such as those who comment or send private messages directly to my instagram page?

I tried using this endpoint with the IDs of some other users who contacted my page via DM without success. I can see the number of followers, following, username, among other things.

I integrated meta pixel (server side) on my storefront (B2B commerce), the connection is established correctly, but seems like meta is not accepting (understanding) the passed parameters of each callout.

I managed to set up code integration with meta, I'm receiving the events, but not sure why I don't see the sent parameters inside the meta configurator. I've set all the matching and also added all the fields I'm sending, getting no error, but Meta still doesn't see the params. For example, the View content is empty, I can only see something for the addToCart call. What is more strange is for testing events everything looks good. When I add the test Code for the callout, the test events are displayed correctly, with all the data.

Sample code, I'm using

https://graph.facebook.com/v19.0/pixelCode/events?access_token=TOKEN         Map<String, Object> event = new Map<String, Object>();         event.put('event_name', type);         event.put('action_source', 'website');         event.put('event_time', unixTimestamp);         event.put('user_data', new Map<String, Object>{             'em' => new List<String>{ hashedEmail }         });         event.put('event_source_url', 'myurl.com');         if (type == 'ViewContent' || type == 'AddToCart') {             event.put('custom_data', new Map<String, Object>{                 'content_category' => product.Family,                 'content_name' => product.Name,                 'content_ids' => new List<String>{ product.Id },                 'content_type' => 'product'             });         }              //Prepare the request body             List<Map<String, Object>> events = new List<Map<String, Object>>();             events.add(event);             Map<String, Object> requestBody = new Map<String, Object>();             requestBody.put('data', events);             String requestBodyJson = JSON.serialize(requestBody);             httpRequest.setBody(requestBodyJson);             Http http = new Http();             HttpResponse httpResponse = http.send(httpRequest); 

Here is my configuration and result presented in the meta.

  • List item

I have developed a Meta app and I am encountering an error after successful authentication. During the callback got this type of error that they have blocked my url.

I have not engaged in any illegal activities. Despite trying different devices and URLs, I still receive the same error:

It seems that Meta is blocking URLs from ngrok and other similar platforms. I am unsure how to resolve this issue.

Has anyone faced a similar problem or have any suggestions on how to proceed? Are there any specific precautions or configurations I should be aware of to avoid this issue?

I'm implementing the WhatsApp Cloud API, one of the steps to do it it's subscribe to webhooks and verify them using three parameters: hub.mode, hub.challenge and hub.verify_token.

We have tried sending webhook tests from several sources and tools to send petitions to the API and we have also sent messages to the WhatsApp account that is being handled by the API, and in none of these tests the Hub parameters are appearing. As it's shown in the image, we are expecting the parameters are shown in a Get array.

This is how the log is looking in my Callback URL

array ( )POST GETarray ( 

This is how the log should look

array ( )POST GETarray (   'hub_mode' => 'subscribe',   'hub_challenge' => '<challenge number>',   'hub_verify_token' => '<token>', ) 

The query string and the request URI should show the hub parameters too, but it doesn't.

What are we missing?