I am trying to request access to a page with my business manager running this call in graphapi:
POST: {businessid}/client_pages?page_id={pageid}&permitted_roles=['ADVERTISER']
With my systemuser admin token as requested per documentation:
https://developers.facebook.com/docs/marketing-api/business-asset-management/guides/pages
this will result in an error
{
"error": {
"message": "(#10) Application does not have permission for this action",
"type": "OAuthException",
"code": 10,
"fbtrace_id": "{traceid}"
}
}
Now i cant find anywhere in the documentation that i need further permissions than just being a systemuser and having access to the business.
My permission list on developer.facebook
I am missing a permission but i cant figure out which one, any ideas ? :)
Cheers
Related
I am using Graph API Explorer - Meta for developers to test available APIs on my page.
When testing insights APIs with available metrics, all metrics related to page worked well and returned data. However, when trying to get insights of a page post, the API fails and returns the following error.
{
"error": {
"message": "Permissions error",
"type": "OAuthException",
"code": 200,
"error_subcode": 1504029,
"is_transient": false,
"error_user_title": "User doesn't have enough permissions to load insights",
"error_user_msg": "You do not have enough permission to view the metric.",
"fbtrace_id": "AVGaadEbmGMteMFk_Gu3Xda"
}
}
I am already adding pages_read_engagements and read_insights permissions in Page Access Token.
API example:
https://graph.facebook.com/v15.0/{page-id}_{post-id}/insights/post_reactions_like_total?access_token={access-token}
How to solve this error?
Is this error related to low number of likes on the page (35 likes)?
my app is in development
i am using below permissions:
"public_profile",
"publish_video",
"pages_show_list",
"pages_read_engagement",
"pages_manage_posts",
"publish_pages",
"user_managed_groups",
"groups_show_list",
"publish_to_groups",
"groups_access_member_info",
"publish_actions"
but on trying use the api to post photo in group and page i get below errors
https://graph.facebook.com/v12.0/{page-id}/photos?access_token=={token}&url={url.jpg}
error:
{
"error": {
"message": "(#200) The permission(s) publish_actions are not available. It has been deprecated. If you want to provide a way for your app users to share content to Facebook, we encourage you to use our Sharing products instead.",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "AW4L8qJL7HJWz9oTL7rk1IY"
}
}
https://graph.facebook.com/v12.0/{group-id}/photos?access_token={token}&url={url.jpg}
error:
{
"error": {
"message": "(#200) Insufficient permission to post to group",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "AsV2H45AICb6G7D73aiedW4"
}
}
Can someone please help with this
Solution for page post
follow this url for details: access_token
using user access token get page access token, pass this page access token in above url for page post
curl --location --request GET 'https://graph.facebook.com/v12.0/{page-id}?access_token={user-access-token}&fields=access_token'
I would like to fetch each media insights at once. I try to fetch them with business_discovry but I haven't.
If you know some resolves, please teach me.
API URL I tried
17535554xxx?fields=business_discovery.username(NAME){media_count,media{insights{engagement}}}
ERROR MESSAGE
{
"error": {
"message": "(#100) Please read documentation for supported fields.",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "AWje-t3mED9fzU02LfP441"
}
}
PERMISSION
email
read_insights
pages_show_list
ads_management
ads_read
business_management
instagram_basic
instagram_manage_insights
pages_read_engagement
public_profile
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
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?