I have created a facebook business page and i want to get some posts over the graph api.
I have set everything up (Developer App, Token...).
I get this error when I make an http request:
{
"error": {
"message": "Unsupported get request. Object with ID '492303394120348' 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": "DxgFcxGEl2Y"
}
}
When i am using the page-id of another facebook page it is working.
What is the problem here. Can someone please help me?
App Tokens are not a good way to access a Page with the API. If the Page is restricted by age or location, you need a User Token of a user who is able to see the Page, or a Page Token of that Page. You should always consider using a Page Token.
Related
I am trying to make a very simple request to Facebook's Graph API using this URL:
https://graph.facebook.com/v2.12/1984193321812400?fields=overall_star_rating&access_token=205658113371329|gYdP-nDHNVENlwVxria21Uczgs8
All I want from Facebook is the overall_star_rating of my Facebook page. However, this is what I get:
{
"error": {
"message": "(#200) Access to this data is temporarily disabled for non-active apps or apps that have not recently accessed this data due to changes we are making to the Facebook Platform. https://developers.facebook.com/status/issues/206742313468873/",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "A9XRfTkh3WR"
}
}
Since I am completely new to Facebook Graph API: Is the request I am making correct or am I missing something really fundamental here?
And yes, I read Facebook's issue report, but I don't find it very helpful since I set my app to active already and it's not working anyway.
Thanks for any help in this matter.
Since Facebook is undergoing major changes, they have revoked few access to non active apps. Get the access_token from any frequently used app, your Graph API call is pretty correct!
But the Page ID seems to be wrong, as it shows me error after adding a working token.
Error : "message": "(#803) Some of the aliases you requested do not
exist: 1984192327815400"
After changing the Page ID, and adding active app token, it shows the correct result.
I have admin access to a Business Facebook page, I created an app under the same account, when I then try to use the Graph API Explorer under that application using the access token generated I get:
get/v2.5/{client-name}/
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
I have full access so I do not know why I am getting a error. This normally works fine when I try it on a standard Facebook page, is there something extra I need to do for Business pages?
Since you are trying with an App Token, i assume that the Page is restricted by age or location. In that case, you have to use a User Token or Page Token of a user who is allowed to see the Page and its content.
More information about Tokens:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
I have a comment interface that needs to show peoples Facebook profile pics and names. When I try to get the info using /me in the graph API it works. But if I use someone else's userID I get an error:
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"fbtrace_id": "EY/oRYYby2u"
It works if I am friends with the other person, so is not being friends why this doesn't work? They have both authorized the app. Do I need to server side store everyone's access tokens and use the corresponding token to access the data I need?
If you have the app token you can get name of each user connected to app.
https://graph.facebook.com/userID?access_token=App_token
I have a really weird situation here, and I've looked everywhere through Facebook's documentation with no answers.
I'm trying to get get recent posts from multiple Facebook pages. But one of them keeps crashing. It won't work when I'm using an app token. It works if I'm using access tokens, but those expire, so it'd be better to not use that.
https://graph.facebook.com/norgeshushonefoss/posts?access_token=myAppToken
gives this result:
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
}
While this url gives me the recent posts: https://graph.facebook.com/norgeshus/posts?access_token=myAppToken
I can't see any difference in those two. Are there any page settings that may cause an app token not to authorize for some reason?
If the page has any access restrictions in place (age, location, alcohol-related content), then you can not access any of its info using your app access token.
It needs a user access token for a user that qualifies to see the page (or a page access token).
I'm trying to achieve the following:
User logs in on my website using a custom Facebook Login
User creates a post on his wall using the feed dialog from my website
I store the post_id in a database
I need to query the post in order to get the number of likes it got with FB API
The problem is that Facebook new application review won't authorize my application to use the read_stream permission since it's in a website (as their policy says)
It seems (as on documentation) that I can retrieve a single post (published as "public") with just a valid user access token; but the Open Graph Explorer tool responds with this:
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
}
Is there a way I can query a single public post with just a valid access token and without read_stream permission?
Or is there a way I can use the read_stream permission on a website?
Thank you in advance for your help!