简体   繁体   中英

Facebook graph API and Facebook groups

I have two questions about Facebook GraphAPI and Facebook Group:

  1. Is there some way to connect existing FB Group and new FB App?
  2. I wanna add a new member of FB Group via FB Graph. I have code ( Graph API Reference )

$postResult = $this->facebook->api("/GROUP_ID/members", "POST", 
      array (
        'member' => 'USER_ID',
      )
    );

but I still get error " (#3) Unknown method ".

The documentation says:

An app access token can invite any app users to a group created by that app.

So the request must be made with an app access token and this same app app must have created that group.

You cannot send request to the friends if that group was not created using an app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM