Posts tagged with facebook-graph-api

I’m working on a React Native app and want to track app installations using Facebook’s Conversion API. I’ve set up Facebook’s SDK in my app, but I’m having trouble integrating the Conversion API.

Here’s what I’ve done so far:

  • Integrated Facebook SDK for React Native.
  • Configured Facebook app events. Events can be seen on the Events Manager dashboard.
  • Consulted the Facebook documentation on Conversion API.

I’ve found that the Conversion API is mainly designed for server-side tracking. My questions are:

  • How can I send installation events from a React Native app to the Facebook Conversion API?
  • Are there any specific libraries or tools I should use to facilitate this integration?
  • Should I send these events directly from the app, or is it better to send them through a server? Any guidance or examples would be greatly appreciated!

I really appreciate any help you can provide.

Wondering can anyone point me in the right direction here. I am trying to access the activity endpoint of the facebook marketing api and keep getting a missing permissions error.

https://developers.facebook.com/docs/marketing-api/reference/ad-activity/

Can anyone help or point me to what I am doing wrong?

I am following this stack so think I am right in graph endpoint:

Using the Activity Log Endpoint in the Facebook Marketing APIs

Endpoint I am creating looks like this in python:

url = f"https://graph.facebook.com/v20.0/act_{account_id}/activities?access_token={access_token}" 

I have tried recreating my token and giving all permissions to it and still getting the same error so not sure what I am missing. Can someone point me to the permissions required for it? This is the error I'm seeing:

Here is the error:

{'error': {'message': '(#100) Missing permissions', 'type': 'OAuthException', 'code': 100, 'fbtrace_id': 'Aa6zg3SUnxRo_rLBI6EQTtA'}} 

I have my own instagram account and i have created an app in meta for my account automation.

Everytime i automate private replying to a DM, i get below error after sometime.

{   "error": {     "message": "The thread owner has archived or deleted this conversation, or the thread does not exist.",     "type": "IGApiException",     "code": 100,     "error_subcode": 2534001,     "fbtrace_id": "AgLmAH4eepLIf1PqLBN3y4J"   } } 

When i reply with a comment, i get this below error.

{   "error": {     "message": "This API call does not support the requested response format",     "type": "OAuthException",     "code": 20,     "error_subcode": 1772111,     "is_transient": false,     "error_user_title": "Create Comment Failed - Spam Detected",     "error_user_msg": "To protect the Instagram community, your comment was flagged as spam and could not be added. Please review your comment's content and try again.",     "fbtrace_id": "Aj9iw77tVvnd-loKZG7ULPy"   } } 

There is no documentation for these error code on https://developers.facebook.com/docs/messenger-platform/error-codes/

  1. My meta app is verified.
  2. I am using long lived access token in api calls.

Everything seems fine, why is instagram blocking my automation? How is same working with manychat?

Intially i found some reference to verify my app to prevent this error. So, i have verified my meta app with meta.

Can we create Media template with using Resumable Upload API of Meta, if we have the https url of the media

We wanted the create media template using meta cloud api without using resumable upload api.

eg payload : { "category": "MARKETING", "name": "flig_confim", "language": "en", "allow_category_change": true, "components": [ { "type": "BODY", "text": "This is your flight confirmation for {{1}}-{{2}} on {{3}}", "example": { "body_text": [ [ "Delhi", "Banglore", "20th Monday" ] ] } }, { "type": "FOOTER", "text": "To manage the reservation signin to travel portal" }, { "type": "HEADER", "format": "IMAGE", "example": { "header_handle":"4::YX..." } } ] }

Below is the example to create media template with header_handle info got during resumable api. But we wanted to create media tempate without using resumable api, where user will provide the https url of the image/document and we need to create template using that link instead of header_handle

There seems to be a bug in the facebook marketing api v20.0

When you try to create AdSet with IMPRESSION as an optimization goal for the campaign objective as OUTCOME_TRAFFIC, the api always returns

{ "error": { "message": "Invalid parameter", "type": "OAuthException", "code": 100, "error_data": "{"blame_field_specs":[["optimization_goal"]]}", "error_subcode": 2490408, "is_transient": false, "error_user_title": "Performance goal isn't available", "error_user_msg": "You can't use the selected performance goal with your campaign objective. Please select a different goal or edit your campaign.", "fbtrace_id": "AemKqGCO7_RymPyjuXcJJYp" } }

I tried from both facebook business sdk of v20.0 and using graph url v20.0

https://graph.facebook.com/v20.0/act_12xxxxxxxx/adsets?access_token=EAAwpjCkZBW7YBO4CSJex2ek2whxxxxxxxxxxxxxxxxx

There is no problem with v19.0 and v18.0

Has anyone came across this problem?