I am using facebook graph api to comment on a post made by me in a facebook group that i am admin of. I am getting the following error:
{u'error': {u'message': u'(#3) Publishing comments through the API is only available for page access tokens', u'code': 3, u'type': u'OAuthException', u'fbtrace_id': u'Fy1DWoFqblz'}}
How do i get away from this? Thanks
From the changelog:
90-day Deprecations in Graph API v2.10
POST and DELETE operations for the /{comment-id} node and the
/{object-id}/comments edge will now be restricted to Pages with valid
page access tokens.
Source: https://developers.facebook.com/docs/apps/changelog#v2_10
According to the facebook documentation after, 90 days i wont be able to reply comments using the API. It is right?
Checkout the facebook documentation comment:
90-day Deprecations in Graph API v2.10
POST and DELETE operations for the /{comment-id} node and the
/{object-id}/comments edge will now be restricted to Pages with valid
page access tokens.
Related
I'm seeing this error for a page with this endpoint:
12345566/feed?fields=insights.metric(post_impressions_unique,post_impressions)
and I'm seeing this error: User doesn't have enough permissions to load insights
I've added the following permissions: read_insights pages_read_engagement, etc that is required according to the docs here but when I contact Facebook Developer support they say I have to add it at to Granular Scope.... how do I do this? I've attached a picture showing what the token debugger shoes for this Page Access Token permissions
I did have a similar issue on some of my pages. I did reach the Facebook's support on the matter.
TL;DR use /published_posts instead of /feed
Facebook's support full reply:
I have investigated this and I have a solution for you. Instead of using the /feed endpoint for the Page, please use the /published_posts endpoint instead.
The 'feed' for a page includes posts made by other Users/Pages when they tag your Page. When you try to access the insights for these posts made by other accounts, we run into the issue that this access token does not have the permissions to view those insights.
The 'published_posts' endpoint only includes posts made by the page itself, so you will be able to retrieve the insights using this.
Thank you for flagging this to us. I will see if there are improvements that could be made to our documentation or error messaging to improve the experience of other developers.
Using Facebook Api https://developers.facebook.com/tools/explorer/
Currently i am able to get only own comments, i can not see other people comments on my post.I have allowed all permissions, see attached
Permissions
You can use following syntax of Facebook Graph API:
GET /{object-id}/comments
Source:
https://developers.facebook.com/docs/graph-api/reference/v3.2/object/comments
https://www.reddit.com/r/learnprogramming/comments/4p4e8g
According to the FB graph API documentation: https://developers.facebook.com/docs/graph-api/reference/event/#Creating
Creating
Permissions
An access token of an Admin of the Event if required.
You can make a POST request to live_videos edge from the following paths:
/{event_id}/live_videos
When posting to this edge, an Event will be created.
However this is ambiguous - it seems like its referring to live videos, not creating an event itself.
So my question is, in 2018 after all the Cambridge Analytica API shutdowns and permissions changes, how do I programatically create a Facebook event in Javascript having access to the admin page token?
Thanks
Hitting /me/events, I get this return:
(#12) events management API is deprecated for versions v2.0 and higher"
Similar post here: OAuthException: (#12) events management API is deprecated for versions v2.0 and higher
Live videos can be created on existing events (as you have pointed out). But not the ability to create/manage events.
In the v2.3 Facebook Graph API, the [user]/posts endpoint returns all that friend's posts.
That endpoint was replaced with /feed from v2.4 onwards. However, it seems that the new endpoint provides significantly less access and that's not acknowledged anywhere in the documentation. Am I missing something important?
The documentation about the v2.5 /feed endpoints says,
Your app needs user_posts permission from the person who created the
post or the person tagged in the post.
This seems to mean that, under v2.5, it's only possibly to retrieve the feed of the authenticated user and not their friends. Is that correct?
Yes, that is correct. There´s not really anything else to add, you can´t get the whole feed anymore for privacy reasons.
See "user_posts" in v2.3: https://developers.facebook.com/docs/apps/changelog#v2_3
I'm using the Facebook Graph Api v2.1 to get all comments on the posts we do on our Facebook page. I noticed we are missing some comments because Facebook has marked them as Spam. Is there a way I can retrieve these comments too? I tried this:
Identify Spam from fb:comments via FQL
.. but all comments come back with is_private "false". So I take it I have to go up one level and add a property to the API call.. Searched through the maze of documentation over at Facebook, but no luck..
Here is the URL I use to get the comments:
/v2.1/{0}/comments?fields=id,from,message,created_time&access_token={1}
where {0} is the object id of the post and {1} the access token.
Any ideas?