Unsupported post request. Object with ID act_xxxxxxxxx does not exist - facebook

I'm trying to create new custom-audience via facebook graph API as it said on page https://developers.facebook.com/docs/marketing-api/audiences/guides/custom-audiences and i'm getting this error
Status: 400
Response:
{
"error": {
"message": "Unsupported post request. Object with ID 'act_xxxxxxxxxx' 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": "HihUXD8a35/"
}
}
What permission do i need to make successfull API request or what other reasons could cause this error?
Main task is to make an app that would upload user's data as custom audiences from CRM to Facebook Business Manager account. What steps do I need to follow to that successfully?

Related

Facebook ads leads retrieving (GraphMethodException)

https://graph.facebook.com/v14.0/{lead_id}?access_token=
I'm using this endpoint to get lead data from Facebook Ads forms. When I use this tool (https://developers.facebook.com/tools/lead-ads-testing/) to test the form, it goes well. But in real life (for audience), the leadgen_id comming from webhook's body (https://developers.facebook.com/docs/marketing-api/guides/lead-ads/retrieving/#webhooks) does not work:
{
"error": {
"message": "Unsupported get request. Object with ID '<leadgen_id from webhook>' 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": "PzqVPIf..."
}
}
At first, I suspected it could be something related to permission, but this other tool (https://developers.facebook.com/tools/debug/accesstoken) said that all the permissions needed were set:
Image

How to implement Graph-API to get data of Facebook Workplace

I have implemented Facebook API in our APP by using Graph-API. Now I am trying to implement FB-workplace in my application, but i am not able to get any workplace details by using graph-API. I am having my access_token.
I am using FB Graph-API explorer and Postman, but from both the ways i am getting nothing/Error. So What would i change in this to get that data or any more permission needs to update.
Please help in this.
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "AjRPf0Xnp7tkluvI9kWo"
}
}

Facebook: get event information for public page

My Facebook page publishes public events and I am developing an app that uses this page. I want to get the number of interested/going people for a specific event given its Facebook id.
I, the creator of the app, am also the admin of the page. However, using my app access token that I generated with the app id and the app secret, I can't call the event API: https://graph.facebook.com/v3.0/137340177139954?access_token={access_token}
I get the following error
{
"error": {
"message": "Unsupported get request. Object with ID '137340177139954' 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": "FqJ5oAqdukA"
}
}
What am I doing wrong? How do I get event information about a page that I own
The endpoint that you're hitting is not correct. You're forgetting the /events portion after your page_id.
This is what it should look like:
https://graph.facebook.com/v3.0/137340177139954/events?access_token={access_token}

Facebook Graph API Can't read public photo comments

I'm trying to read all comments from some FB public post (w/ photo). I found some docs about FB Graph API and build the folowing request. But it fails.
https://developers.facebook.com/tools/explorer/?method=GET&path=1542065625839944&version=v2.11
But I get this:
{
"error": {
"message": "Unsupported get request. Object with ID '1542065625839944' 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": "HQFdeKx0lqh"
}
}
I also tried with user id 100001095643511_1542065625839944
https://developers.facebook.com/tools/explorer/?method=GET&path=100001095643511_1542065625839944%2Fphotos&version=v2.11
What am I doing wrong? Or is there other easy way to get comments?

Unsupported get request public information for a user on FB

We are try to update users information in our db related to their interests available on facebook. We are able to import data of almost everyone register with us but for the user with fb profile id 100012374975360 we are unable to do so we getting the following error even with fb graph api explorer with the following query params
100012374975360?fields=id,age_range,first_name,last_name,birthday,gender,email,education,devices,cover,about,hometown,currency,context,languages,is_verified,link,locale,location,name,middle_name,meeting_for,name_format,quotes,favorite_athletes,political,security_settings,timezone,sports,relationship_status,work,third_party_id,religion,likes.limit(10),tagged.include_hidden(true).limit(10),interested_in,photos.limit(10)
Error:
{
"error": {
"message": "Unsupported get request. Object with ID '100012374975360' 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,
"fbtrace_id": "FK9+dItscZj"
}
}
Can know why it is happening, what is wrong with this user.
Thanks