Is Facebook Graph API v3.0 for Groups broken? - facebook

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/

Related

How to get access token for Facebook Groups API?

Am quite new to php, facebook graph and stackoverflow so please forgive. Previously, the following in my php script worked to get an access token for a facebook group:
graph.facebook.com/oauth/access_token?client_id={$appId}&client_secret={$appSecret}&grant_type=client_credentials
What should the request be now? (I know my app-scoped user-id if that helps?)
Background: It's a simple server-to-server app to copy photos from a facebook group to a website. Therefore logins don't apply. It's been reviewed and my business verified (that was fun... not!). I've added my app to the group's settings, but can't find the next step. Any help appreciated, thanks.

Facebook Graph API return empty Page Events (7th May 2018) [duplicate]

This looks a kind of duplicate question but actually NOT.
So the problem is https://www.facebook.com/julytalk/ has events, for sure.
But when I tried on Facebook Group API toolkit, it returns empty array.
https://developers.facebook.com/tools/explorer/145634995501895?method=GET&path=204859706228731%2Fevents&version=v2.12
Why is this happening?
I could not find any Facebook API endpoint modification notice, at all.
It was working okay before.
Please help me.
https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes
Access to the Events API is not possible at the moment:
...apps currently accessing Events and Groups APIs will lose access today
Update: After Facebook did a lot of changes, it seems to be possible to get events again. You can get events from Pages you manage easily in dev mode. If you want to get public events, you may want to read the answer in this thread: Facebook pages API: "Page Public Content Access" review screencast
The above answer was misleading for me, not because its wrong but because so many things have changed on Facebook's side and I needed further clarification.
This is the current state based on my research (25.08.2020.).
There are several types of events available based on where the event destination is:
User events
Documentation terminology: "Events on User"
API endpoint:
me/events
Page Events
Documentation terminology: "Events on Groups"
API endpoints:
me/groups
group_id/events
Group Events
Documentation terminology: "Events on Pages"
API endpoint:
me/accounts
page_id/events
App Events
Documentation terminology: "Events on an App"
API endpoint:
{application-id}/events
About app events.
The list is taken mostly from Facebooks API event endpoint.
The documentation is wrong on event limitations:
Access to Events on Users and Pages is only available to Facebook
Marketing Partners.
The current state is that "Access to Events on Users and Pages is available to":
A) App Admins (verified with testing)
B) App Developers (verified with testing)
C) App Testers (not verified)
D) Facebook Marketing Partners (not verified)
What does this mean?
This means if your query the "me/accounts" endpoint which will give you a list of page ids.
When you select a page id and then query "your_selected_page_id/events" you will receive:
An empty list if you are not A-D)
A list of events which is not the same as your users.
A lot of confusion and frustration because there is no error message thrown.
I have tested this with different API versions 4.0 - 8.0 and the results were the same.
I have also tested this with a different but similar set of permissions, resulting in the same empty array response.
SOLUTION(S):
TODO: UPDATE: Clarify who needs to become FMP.
To query for page events "someone" needs to be a Facebook Marketing Partner.
https://developers.facebook.com/support/bugs/352704275741601/
Invite your users to become testers.
Helpful links:
Read more on Facebook Marketing Partners.
Officially on Facebook Marketing Partners.
Facebook Graph Explorer.
Facebook Batch Requests.
Additional notes:
Page event fetching has the same requirements as user events fetching.
Group event fetching works for all users (ignores A-D).
Creating batch requests with no FMP will result in response sections that only have empty arrays.

Accessing a Closed Groups Feed via Facebook's Graph API

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

Access user's news feeds via Facebook Graph API

Pacific controls systems is developing a web application which includes gadget. we have a requirement to show a user's news feeds in a gadget. This requirement could be fulfilled with "me/home" Facebook API endpoint but this endpoint is deprecated right now.
Facebook API documentation redirect developers to use "me/feed" instead "me/home". To get access to user's news feeds we need "read_stream" permission. But according to Facebook support forum, this permission only be granted to apps which aims on platforms where Facebook is not already available.
Is there any workaround available to fulfill our requirement?.
read_stream does not exist anymore since a very long time. You can use user_posts instead, just keep in mind that you will not get all posts. Detailed information can be found in the changelog: https://developers.facebook.com/docs/apps/changelog#v2_3
Possible feed endpoints are listed in the API reference: https://developers.facebook.com/docs/graph-api/reference/v2.5/user/feed
Usage of user_posts has to get reviewed by Facebook before it can be used for users without a role in the App, it is called "Login Review": https://developers.facebook.com/docs/facebook-login/review

How to get the list of facebook groups using graph api

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