Facebook: get event information for public page - facebook

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}

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

Can't retrieve posts from facebook public page via facebook API

Yesterday on the Facebook Graph API tool I could create an access_token without having to own an App then get posts/publications via {page-id}/posts or {page-id}/feed.
Today, first thing when I arrive on the Facebook Graph API tool is that I have to create an application to have access then after creating it with the same operation than before it returns me an error like this
{
"error": {
"message": "(#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.",
"type": "OAuthException",
"code": 10,
"fbtrace_id": "FJ52hd03hq"
},
"__debug__": {}
}
Then I went see someone owning a verified application so I can try with an access_token generated with his application. The result is the same.
Anyone facing the same problem ? Did I missed something ?

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

App Scoped Id - Link to Facebook URL

Previously - we were able to use the /account_id?acesss_token=APP_ACCESS_TOKEN to get the users information that authed in your app.
For the new v2.0 API, we get app_scoped_id where the folllowing method:
https://graph.facebook.com/v2.0/APP_SCOPED_ID?access_token=APP_ACCESS_TOKEN
Works for some users, but others - we get this:
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
}
Why would this function work for some users, but not others? We have no way to get the link property of the user to redirect them, nor does http:///facebook.com/SCOPED_APP_ID do anything or http://facebook.com/app_scoped_user_id/SCOPED_APP_ID work correctly. Anyone have advice to redirect the user to their FB profile via the FB Scope App ID?

Facebook Graph API: "Unsupported get request" when trying to get public information

until now I thought it was possible to retrieve the public information of every user when making a get request to https://graph.facebook.com/user_id.
But I just noticed a user where I am getting this as response
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
It's also not possible to get a custom profile-picture via http://graph.facebook.com/user_id/picture?width=100&height=75.
But the user/page can be viewed even if I am not logged in to Facebook. So I just can't access the public user information via the Graph API (without access token).
I think the user might have (de)activated something in the privacy settings which disables retrieving public information with the Graph API. Do you know more about this?