When I try to use the already generated access token, on this https://graph.facebook.com/4921782178422?fields=id&access_token=ACCESS_TOKEN, it gives me this in response:
{
"error": {
"message": "Unsupported get request. Object with ID '4921782178422' 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": "F2ot2MGcBBM"
}
}
Facebook writes that all access tokens have permissions to public_profile, but i can't use the link above.
4921782178422 is a user id.
It works fine, when I use my own user access token, but that's only valid for 1 hour, and I need it longer than that.
I have followed these steps:
facebook: permanent Page Access Token?
What do I do wrong?
Related
api works for user token but does not when i put app token
https://graph.facebook.com/v9.0/<my-catalog-id>/batch?access_token=<my-app-token>&requests=[{"method": "UPDATE","retailer_id": "retailer-id","data":{"availability": "in stock", "price": "10", "currency": "USD"}}]
{
"error": {
"message": "Unsupported post request. Object with ID '********' 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
}
}
If the id in ****** is your catalog id then your app must be missing permission. To access catalog, your app should have catalog_management and ads_management permissions. For better understanding you can refer this url. This document has example of real estate listings.
If the id in ****** is your catalog id then your app must be missing permission. To access catalog, your app should have catalog_management and ads_management permissions. For better understanding you can refer this url. This document has example of real estate listings.
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}
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
On Graph API Explorer I can do this search: search?q=Barcelona&type=event
But when I try the same with my app access token I get this error:
{
"error": {
"message": "(#200) Must have a valid access_token to access this endpoint",
"type": "OAuthException",
"code": 200
}
}
The other searches work well.
UPDATE 2017-11-27:
As Facebook doesn't allow an event search based on location anymore, I'd recommend to use https://github.com/tobilg/facebook-events-by-location-core
Original answer:
Please refer to https://developers.facebook.com/docs/reference/api/search/#access_tokens
There, it's stated that all searches except for pages and places require an user access token.
I wanted to publish a link on the given profile on Facebook via the app. Post to https://graph.facebook.com/PROFILE_ID/links with access_token and other necessary parameters.
For testing purpose, I got the access_token with Graph API Explorer and had the publish_stream and share_item extended permission.
Then I got the error
{
"error": {
"message": "An access token is required to request this resource.",
"type": "OAuthException",
"code": 104
}
}
I tried fb_id and fb_username for the PROFILE_ID but got the same error. Anything wrong?
Thanks
Yes. /links is read only. To create a link, you need to POST to /USER_ID/feed.
https://developers.facebook.com/docs/reference/api/user/#links