Assuming a user authenticates appropriately, and is a member (note: not administrator) of a given group. Is it possible to access the feed of said group using Facebook's graph API?
Previous posts have suggested this is not possible with the introduction of the Graph API, however these are 2 years old and Facebook's documentation is less clear on the matter.
According to the documentation to read feeds of any group "A User access token for an Admin of the Group with the following permissions: user_managed_groups"
Source link : https://developers.facebook.com/docs/graph-api/reference/v2.12/group/feed
Related
I think that Facebook has basically closed the API for groups now, and they didn't announce it.
user_managed_groups has been deprecated, and it works "For testing only".
groups_access_member_info returns only "member-related data on group content"
publish_to_groups gives an app the ability to post content... but there is no way to retrieve the list of managed groups and access_token.
Is the current Groups API 3.0 broken?
P.S. There is a bug opened: https://developers.facebook.com/support/bugs/382344108912316/
I am attempting to retrieve my own comments from a public group on Facebook, using the Facebook Graph API. This is a public group of which I am not an administrator.
I have attempted a number of strategies, but to no avail so far. I keep hitting brick walls, e.g.:
The xxx'yyy' is only accessible on the User object after the user grants the 'user_managed_groups' permission.
If I go on my own profile activity log, I can see those comments, so I would have expected there should have been a way to retrieve those programmatically through the Graph API.
Am I mistaken?
UPDATE
On the chance that I am indeed mistaken, I have sent the following feedback to Facebook:
I would like to b able to retrieve my own comments from a public group on Facebook, using the Facebook Graph API. This is a
public group of which I am not an administrator.
At the moment, the Graph API documentation (v2.12) states that to read the feed I need to provide a user access token for an Admin of
the Group with the user_managed_groups permissions.
Please note that if I go on my own profile activity log, I can see those comments, so I would have expected there should have been a way
to retrieve those programmatically through the Graph API.
Group feeds are only accessible with an access token of a group admin now.
Please note that if I go on my own profile activity log, I can see those comments, so I would have expected there should have been a way to retrieve those programmatically through the Graph API.
The main difference is, that you are one single person looking at your own data. But if I create an app and have a hundred thousand people log in to it and it was possible to read that data, then I could accumulate it for whatever shady purpose ...
(Now with the feed of a public group that might seem a little over the top, I know - but I think the general idea is to make automated data collection harder.)
I want the list of groups in which I'm member. In the Graph Api Explorer I did not find any permission like user_groups.
I select all the "User Data Permissions" and "Extended Permissions" but it did not work.
In graph api explorer I am using this command GET->/v2.4/me/groups.
and i get empty JSON data Like this.
{
"data":[
]
}
And if I use the old graph api version 2.2 Like GET->/v2.2/me/groups then I get the groups only in which I am admin not all the groups.
If anyone have this experience and also have any solution please help me to solve my problem.
Short answer: user_groups is deprecated with v2.4, see
https://developers.facebook.com/docs/apps/changelog#v2_4
the user_groups permission has been deprecated. Developers may continue to use the user_managed_groups permission to access the groups a person is the administrator of. This information is still accessed via the /v2.4/{user_id}/groups edge which is still available in v2.4.
What are you looking for exactly?
The list of all groups that you are a member of?
The list of all groups that you admin?
I am not sure about A but at the time of writing this answer, Graph API v2.5 is the latest version and you can find the list of all the groups where you are the admin by using the admined_groups endpoint. You need the permission user_managed_groups in your Access Token, without the permission you will get empty data.
Here is a link to the endpoint
To obtain the list of Facebook groups, you can submit a request to the following endpoint:
https://graph.facebook.com/v5.0/{ID GROUP}?&access_token={ACCESS_TOKEN}
Update 27 Juli 2022
You must have permission called groups_access_member_info for get list group
I need to get different user follower counts through facebook graph api. I get the user id through user name but how i get the follower count of that user.
thanks in advance
You're facing at least two problems here:
1) The username field has been deprecated with Graph API v2.0
2) The /{user_id}/subscribers edge has been deprecated with Graph API v2.0
I guess you'll not be able to do what you want to achieve unfortunately.
See https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api
We have a Facebook Application with custom Open Graph objects and actions.
We then use a App Access Token to post stories for a particular user from our backend with the normal Open Graph REST API. After the post-call succeeds we log the returned "id" of that post.
Now we would like to collect insight data (e.g. post_impressions_unique) for some of these individual posts/stories using the logged id's.
According to https://developers.facebook.com/blog/post/573/ we should be able to do something like:
https://graph.facebook.com/[POST ID]/insights
Even though this call seems to work using our normal App Access Token, no insight data is returned for the post/story.
Does anyone know if this is possible and how to do it?
We have been experimenting with a normal User Access Token and the "read_insights" permissions, but with no luck. I have read some similar questions but mainly regarding page-posts (this is an App Open Graph post/story).
EDIT:
The facebook article above only refers to "Page" posts. I'm looking for analytics on individual Facebook App Opengraph Posts/stories. It seems difficult to find any good information about this, has nobody attempted this with any success?
You must add insights into a permissions/Extended permissions
Article :
Getting Page Insights
In order to obtain Page Insights via the Graph API, you must use a Page access token, and you must have the read_insights permission. Click on the link below to see this working in the Graph API Explorer.