FB Graph API: Get id of a page with a country restriction - facebook

Is it possible to get the Page ID of a page that has country restrictions?
Usually if I do something like http://graph.facebook.com/google
I'll get a response object with a bunch of info (incl. the id).
However doing http://graph.facebook.com/[page_with_country_restriction] returns:
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}

Yes. It's possible to get the information of a page with country restrictions. You just need a valid Access Token for that.
Try making a request to the URL using that Access Token. Something like:
https://graph.facebook.com/teabeauty?access_token={Access_Token}
You can always make use of Graph API Explorer to test your requests and queries.

Related

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}

Getting Facebook Album Photo's on External Website using Graph API

I'm trying to get Facebook album data on a site, using the Facebook Graph API.
I'm trying to do so via Ajax or Postman but I can't get it to work.
I can make a normal https://graph.facebook.com/me call and get my name (i.e. this shows that I got the proper access token in Postman and can see the JSON).
It's when I try to do a call to get the JSON for the album that I get this error below (again the access token is there like the call above)
From the URL, I get the ID of the album:
https://www.facebook.com/amir.sobhi.94/media_set?set=a.693877XXx02412.100004404098018&type=3
and the error was ...
{
"error": {
"message": "Unsupported get request. Object with ID '693877XXx02412' 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": "DHWlSshJtTU"
}
}

facebook api get page ratings return Unsupported get request

I already followed instructions from this https://developers.facebook.com/docs/graph-api/reference/v2.0/page/ratings
some config I have already made, this has been run only in facebook graph explorer
using page_access_token from me/accounts which is a required just want to post this
the field=open_graph_story and other fields
age restrictions changed back and forth
country restrictions changed back and forth
still having the same problem.
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
Is there something to do with the selected developer only to use this api? I have read something like that in the facebook api but failed to locate the url.
Any details about this problem, please, at least refer me some links.

FB Graph API return unsuported get request even public post without restriction

I try to retrieve post's information from Graph API:
https://graph.facebook.com/100006679472813_1392957120936924?access_token={my_access_token}
The Facebook Graph response:
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
However, I can access the post by this link (same user as {my_access_token}) https://www.facebook.com/100006679472813_1392957120936924
And I can receive the original message of this post via Graph Search API too.
Not all posts return error. But so many do. How can I get it's detail via Graph API?
You can not read all the posts in the facebook. If you try to fetch the details of the post by the user other than the user in the session, you may or may not get the details of the post. This depends on the privacy settings of the user. So, only the public posts can be fetched (in case of other users)

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?