Posts under category facebook-graph-api

I want to create an ad creative with the Meta/Facebook Marketing API. The goal is to create an ad creative which I can turn into an ad which has multiple images and primary texts and titles.

As shown in the picture, I want to have the same image in "Feeds, In-Stream Ads for Videos and Reels, Search Results" and "Right Hand, Search Results". I want a different image in "Stories and Reels, Apps and Websites".

Additionally, I want to specify multiple primary texts and multiple titles.

I tried to create the creative using this:

{     "object_story_spec": {       "page_id": "PAGE_ID"     },     "asset_feed_spec": {       "images": [         {           "hash": "HASH1",           "adlabels": [{"name": "label_feed"}]         },         {           "hash": "HASH2",           "adlabels": [{"name": "label_story"}]         }       ],       "bodies": [         {           "text": "Begin Your Adventure"         }       ],       "titles": [         {           "text": "Level Up"         },         {           "text": "Level Up 2"         }       ],       "call_to_action_types": [         "SHOP_NOW"       ],       "link_urls": [         {           "website_url": "https://www.example.com/"         }       ],       "ad_formats": [         "SINGLE_IMAGE"       ],       "asset_customization_rules": [         {           "customization_spec": {             "publisher_platforms": [               "facebook"             ],             "facebook_positions": [               "feed"             ]           },           "image_label": {             "name": "label_feed"           }         },         {           "customization_spec": {             "publisher_platforms": [               "instagram"             ],             "instagram_positions": [               "story"             ]           },           "image_label": {             "name": "label_story"           }         }       ]       },   "status": "PAUSED",   "degrees_of_freedom_spec": {         "creative_features_spec": {             "standard_enhancements": {                 "enroll_status": "OPT_OUT"             }         }     } } 

However, it gives me an error:

Multiple title elements cannot be applied to rule #1 (Priority, if specified, or index of the rule) in the Ad Asset Feed.

Additionally, it seems like I have to specify adlabels in the asset story spec. How can I place the images in the categories without the adlabels?

I am having trouble obtaining the pages_read_engagement and pages_show_list and ... permissions for my Facebook app. I just created the app and selected the Facebook Login type, but the only permissions available in the use cases are email and user_profile.

I want to create an app that can automatically reply to comments with direct messages, so I need the following permissions:

  • pages_show_list

  • pages_read_engagement
    and ...

Here are the steps I have taken so far:

  1. Created a new Facebook app.

  2. Selected "Facebook Login" as the type.

  3. Tried to configure permissions but only saw options for email and user_profile.

How can I add the necessary permissions for my app? Is there a specific process or additional steps I need to follow to request these permissions?

Any help or guidance would be appreciated.

We are trying to give an option to the user to request there partners to share their assets access like ad account to requested business account. we are using this api to process this flow

curl -i -X POST \ "https://graph.facebook.com/v18.0/<businessid>/client_ad_accounts?adaccount_id=act_123&permitted_tasks=%5B%0A%20%20%22MANAGE%22%0A%5D&access_token=User Access Token" 

Note: I will provide the details for above in confidential reply.

we have checked the access token we have the required permission like business_manager as per the api document https://developers.facebook.com/docs/marketing-api/business-asset-management/guides/business-to-business But we keep getting this error (Application does not have the capability to make this api call.).

Please suggestion if anything we are missing or any special permission required for this api call. However when we try the same process with pages then it works fine.

Your help is highly appreciated. Thanks!!

I have tried above Curl , I am expecting access sharing should be working as per the facebook api

I'm making a following API call to facebook graph API to fetch user groups but it returns empty data array.

In the docs: https://developers.facebook.com/docs/graph-api/reference/user/groups/ I found out that:

As of April 4, 2018, this edge returns empty data sets for GET operations unless the calling app has gone through App Review. This applies to GET operations using /me/groups as well. Please see the Groups API section of the Breaking Changes changelog for more information.

I just started developing new app, so there is nothing to review yet. Is there a way to call this endpoint without app review process?

calling this endpoint:

curl -i -X GET \  "https://graph.facebook.com/v20.0/me/groups?access_token=EAAP..." 

returns empty data:

{   "data": [   ] } 

I'm new to development with Instagram APIs and am trying to make a React based application that uses Instagram's graph API in order to fetch posts where my professional account is mentioned and display them on my webpage. I tried going through the Meta documentation on how to use their graph API, but I don't quite get where to start and I am getting confused with all the steps I need to take to just make my first API call. The Meta guide is https://developers.facebook.com/docs/instagram-api/getting-started . Any help regarding this on the steps or links to resources that can guide me through this would be great! Thanks in advance!

I have tried making a react application, but in one of the steps it says to create a facebook login app on my meta dashboard first, I did do that, but I am not getting access to the required permission, instgram_basic, etc.