I have a valid access token to my account which has both user_managed_groups and publish_actions permissions and I tested the app to publish in open/public groups and it works just fine.
The user_managed_groups permission should enable me to publish in other groups that are not public as stated in Facebook developers reference:
For all other kinds of groups, a user access token with publish_actions and user_managed_groups permission is required for someone able to post to the group.
However, as I try to publish in closed groups it returns an error: (#200) The user has not authorized the application to perform this action.
My question is:
Is it possible to post to a closed facebook group vai API?
Do I have to "Review" the app to get user_managed_groups permission as stated here? Even though my app is intended to be used by me only and not willing to publish it to the outside world?.
Or is this a bug in Facebook group permissions?
Are you admin/mod of the group? If not, afaik it is not possible to post to closed groups. Try as group admin, the permissions are correct (user_managed_groups and publish_actions).
Related
I need small help regarding publish_to_groups and Groups API Permissions.
I already have LIVE FB App(Type: Business) and now I need Advance Access of above both permissions to allow users to publish content from our application to their Facebook group.
I have added both permissions to LIVE site and then integrated API and now need to send that to the FB Review team for the review, but when I publish content to the group, I am getting following error
"(#200) If posting to a group, requires app being installed in the group"
I have checked about installing my FB App to the group, but I can not find my FB APP and I think it is because My Live FB App does not have approved permissions of publish_to_groups and Groups API.
so now I don't understand how I can show working use case to fb review team and get permissions approved?
TIA
The Facebook API documentation doesn't clearly state if it's possible to read a secret or closed group feed that the user is a member of, and I didn't succeed no matter the permissions asked. It works with owned groups though (and the user_managed_groups permission).
Permissions
Any valid access token for a public group (i.e. the group's privacy
setting is OPEN).
A user access token for a member of the group.
The user_managed_groups permission can be used to read the group content
for a group in which the user is an admin. This permission also allows
the app to post as the user in the group if the app is also granted
the publish_actions permission.
An app access token can read posts it published in app and game groups that belong to it.
Does anybody succeeded reading a secret or closed Facebook group feed with the API?
The user_managed_groups permission can be used to read the group content for a group in which the user is an admin
As long as the user is admin, it should work. Afaik it does not work if you are just a member.
I'm interested in reading the posts in a private group that I'm a part of on Facebook.
Facebook's documentation shows that you can access a facebook group's feed with the following URL:
GET /v2.4/{group-id}/feed
However even after generating an access token with all permissions, this query always returns an empty array (and I know the group in question has posts in it):
{ data: [] }
One answer I have found suggests that this is because you need an access token for a user that is an administrator for the group.
Is this true? If so/otherwise, is there any way to access a facebook group's feed without admin access to the group?
Considering normal users have access to the group's feed, I would certainly expect there to be a way to do this.
The docs at https://developers.facebook.com/docs/graph-api/reference/v2.4/group/feed say:
Permissions
Any valid access token for a public group (i.e. the group's privacy setting is OPEN).
A user access token for a member of the group.
The user_managed_groups permission can be used to read the group content for a group in which the user is an admin. This permission also allows the app to post as the user in the group if the app is also granted the publish_actions permission. An app granted this permission can continue to use these capabilities even if the user stops being an admin of the group, although the user can remove the app from the group manually.
An app access token can read posts it published in app and game groups that belong to it.
Also, have a look at the changelog at 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.
So, if you're using v2.4 and the group is private, and you're not an admin of the group, I think you cannot access the group's feed.
I have created app for sending post on user's wall on his behalf. I got publish_actions approval from Facebook team for this app. but still i am not able to send post. I am gettoing following error.
{"error":{"message":"(#200) The user hasn't authorized the application to perform this action","type":"OAuthException","code":200}}
Exception in thread "main" org.springframework.social.InsufficientPermissionException: Insufficient permission for this operation.
There is also a problem when my app asking user for approval, its only showing public profile like following screen shot.
Have a look at https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.2#login
You need to add a comma-separated list of your permissions for the scope parameter:
scope. A comma separated list of Permissions to request from the person using your app.
I want to create and manage a group through the Facebook API. There are some older messages here (more than a year old) that say it can't be done -- is that still the case? Has anyone managed to do it?
I'm trying to mark groups' statuses as 'read' (so the unread count in the groups json via the Graph API goes down to 0). From what I can tell, to do anything with groups, you need a manage_groups permission, however using their OAuth for the Graph API, and trying to include the manage_groups permission returns an error suggestion the permission does not exist. Looks like a catch-22 for now.
Please consider subscribing to this facebook bug to help move it along faster:
http://developers.facebook.com/bugs/251651251563163
It looks like user_groups is the permission your looking for.
Any valid access token if the group is public (i.e. the group's privacy setting is OPEN)
"user_groups" permission to retrieve any groups that the session user is a member of.
The "user_managed_groups" permission can be used to read the group content for a group in which the user is an admin. This permission also allows the app to post as the user in the group if the app is also granted the "publish_actions" permission. An app granted this permission can continue to use these capabilities even if the user stops being an admin of the group, although the user can remove the app from the group manually.
https://developers.facebook.com/docs/graph-api/reference/v2.3/group