Search code examples
phpfacebookfacebook-graph-api

Group add request using facebook graph api?


Are there any built-in "Group add request" actions that come with the facebook graph API? Like the built-in Like action? That happens with a users request. I would like to do this from an external website, just like the Like action works

For example the user is active in a forum, where different categories have their own facebook group page, and they would like to access the group without having to actually log on facebook and make the request.


Solution

  • From the docs:

    Invite User

    Applications can invite users to a group by issuing a POST request to /GROUP_ID/members/USER_ID with an app access_token.

    Note that user being invited must be a user of the application. The user will be sent a notification saying that they have been invited to the group. The notification will take them to the group page. Users can only be invited once. Subsequent invites will fail.

    So you the user will have to authorize your app, and then you can do it.