Reputation: 353
I'm looking for a way to add 'add people to group' functionality to a web app. Is there a way to do this?
Upvotes: 5
Views: 4202
Reputation: 47976
You can not simply add people to a group. The user has to want to be added :) I wouldn't want any old application adding me to groups without my permission.
The best thing you can do is have your application send an invite to the user. As stated in the documentation, you would need something like this :
Applications can invite users to a group by issuing a POST request to
/GROUP_ID/members/USER_ID
with an app access_token.
The user will then receive a notification which will allow them to respond to the invite.
Upvotes: 4