Posts tagged with facebook-javascript-sdk

I am trying to create an APP ENGAGEMENT campaign using Facebook ads API. I want to optimize (performance goal) the adset based on custom/standard events associated with the app; not based on clicks or app installs.

I am setting optimization_goal as OFFSITE_CONVERSIONS. Inorder to pass promoted_object, the event name is required. Promoted object will be passed as

{    "application_id" : <APP_ID>,    "object_store_url" : <APP_URL>,    "custom_event_type" : <EVENT_TYPE> } 

In Ads manager UI; when I select the app all the events associated with app are displayed. If no events are associated with the app, it's asking to create an event. How to get all these events via Ads API?

we are using an app for Facebook Business Manager that allows us to manipulate users' catalogs, enabling us to dynamically add products to their Meta catalog. We are looking to use the "commerce_account_read_settings" permission to determine which of their catalogs is linked to their store. However, this permission does not provide an option for an advanced access request, which means it can be used only by users within this app. Is there a way to submit an advanced access request for this permission so that we can interact with all users and not just those within our business manager?

Graph API access token on MBS is required to have access to the catalogue, but the token expires either after 23 hours or 3 months, depending on your needs for it.

Here's the thing: it's rather complicated and laborious for a non-dev or non-tech people in general to get it because you have to be registered as a developer on Meta and navigate to Graph API so you can generate the token (and so on, they will have to get it anyways to access their catalogue).

While I was reading Graph API docs, I found out that the access token is a develop test access token and not an ordinary daily access token, which gave me some hope, but unfortunately, I didn't found much info about how the catalogue access works.

I don't know if I made myself clear, but I appreciate anyone who can help me and suggest whatever I should do next!


I am trying to automate posting to Facebook using the Facebook Node.js SDK. However, for testing purposes, I thought of trying first from the Facebook Graph Explorer API UI. I was following the steps from the docs here: https://developers.facebook.com/docs/pages-api/getting-started/. I added all the permissions but am getting this error when I try posting to https://graph.facebook.com/v20.0/page_id/feed. Here is the error:

{   "error": {     "message": "(#200) If posting to a group, requires app being installed in the group, and \           either publish_to_groups permission with user token, or both pages_read_engagement \           and pages_manage_posts permission with page token; If posting to a page, \           requires both pages_read_engagement and pages_manage_posts as an admin with \           sufficient administrative permission",     "type": "OAuthException",     "code": 200,     "fbtrace_id": "AvqEpJBCdYALhe1DcGEMOee"   } } 

Here are the scopes:pages_show_list, pages_read_engagement, pages_manage_metadata, pages_manage_posts, public_profile.Idont know where the problem is because i have added all the permission needed.

I expected somrthing like this as per the documentation. { "id": "page_post_id" }