Частичное отключениеshare-external
Graph API cannot access object even when all permissions given.
1

I am trying to get access to the ads_read feature. To request the feature we must first make a successful API request.

For this we are using Graph API explore. We are sending the request.

Here is what we do

  1. Configure a post request with a body to graph.facebook.com/v20.0/<PIXEL_ID>/events
  2. On the right select the Meta APP
  3. User or page - select System User Token
  4. Configuration is a configuration that has all the permissions that are avaialble from facebook
  5. Click Generate Access Token and follow the wizard to allow access to the Business Account where this Facebook Datasource is - 763426845599274
  6. Click Submit and we get an error - shown below that we do not have permissions. However there are no more permissions that we could use. We've selected all of them. It seems like the graph api explorer does not take selected permissions into account properly or something else is happening

Here is the debug information

==== Query curl -i -X POST \ "https://graph.facebook.com/v20.0/763426845599274/events?data=%5B%0A%20%20%7B%0A%20%20%20%20%22event_name%22%3A%20%22Purchase%22%2C%0A%20%20%20%20%22event_time%22%3A%201720853300%2C%0A%20%20%20%20%22user_data%22%3A%20%7B%0A%20%20%20%20%20%20%22fbc%22%3A%20%22fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22custom_data%22%3A%20%7B%0A%20%20%20%20%20%20%22currency%22%3A%20%22usd%22%2C%0A%20%20%20%20%20%20%22value%22%3A%20123.45%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22event_source_url%22%3A%20%22https%3A%2F%2Fretreaver.com%22%2C%0A%20%20%20%20%22action_source%22%3A%20%22website%22%0A%20%20%7D%0A%5D&access_token=" ==== Access Token Info { "perms": [ "manage_fundraisers", "read_insights", "publish_video", "catalog_management", "pages_manage_cta", "pages_manage_instant_articles", "pages_show_list", "read_page_mailboxes", "ads_management", "ads_read", "business_management", "pages_messaging", "instagram_basic", "instagram_manage_comments", "instagram_manage_insights", "instagram_content_publish", "leads_retrieval", "whatsapp_business_management", "instagram_manage_messages", "page_events", "commerce_account_read_settings", "commerce_account_manage_orders", "commerce_account_read_orders", "commerce_account_read_reports", "pages_read_engagement", "pages_manage_metadata", "pages_read_user_content", "pages_manage_ads", "pages_manage_posts", "pages_manage_engagement", "whatsapp_business_messaging", "instagram_shopping_tag_products", "instagram_manage_events", "public_profile" ], "user_id": "122102027936408612", "app_id": 1941030869670296 } ==== Parameters - Query Parameters

{} - POST Parameters

{ "data": "[\n {\n \"event_name\": \"Purchase\",\n \"event_time\": 1720853300,\n \"user_data\": {\n \"fbc\": \"fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890\"\n },\n \"custom_data\": {\n \"currency\": \"usd\",\n \"value\": 123.45,\n },\n \"event_source_url\": \"https://retreaver.com\",\n \"action_source\": \"website\"\n }\n]" } ==== Response { "error": { "message": "Unsupported post request. Object with ID '763426845599274' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", "type": "GraphMethodException", "code": 100, "error_subcode": 33, "fbtrace_id": "AJrVEeFvCifqANS4pL07KQi" } } ==== Debug Information from Graph API Explorer - https://developers.facebook.com/tools/explorer/1941030869670296/?method=POST&path=763426845599274%2Fevents&version=v20.0&data=[%0A%20%20%7B%0A%20%20%20%20%22event_name%22%3A%20%22Purchase%22%2C%0A%20%20%20%20%22event_time%22%3A%201720853300%2C%0A%20%20%20%20%22user_data%22%3A%20%7B%0A%20%20%20%20%20%20%22fbc%22%3A%20%22fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22custom_data%22%3A%20%7B%0A%20%20%20%20%20%20%22currency%22%3A%20%22usd%22%2C%0A%20%20%20%20%20%20%22value%22%3A%20123.45%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22event_source_url%22%3A%20%22https%3A%2F%2Fretreaver.com%22%2C%0A%20%20%20%20%22action_source%22%3A%20%22website%22%0A%20%20%7D%0A]

Kiril
Вопрос задан около 4 мес. назад