I'm developing a Web app that has a Facebook group associated with it. I want only authorized users of my app to be able to join this group, and I don't want them to have to be manually approved by a group admin.
My first thought was to use the game_group_join
dialog from the JavaScript SDK, and display this dialog only to authorized users. But this seems to have a few problems; no way to keep track of which Facebook accounts are associated with which accounts in my app, doesn't work with JavaScript disabled, there seems to be no way to stop an unauthorized user from joining the group by making the underlying HTTP requests to Facebook themselves, etc. A server-side solution would seem to eliminate these problems, but I'm not sure if there is one for Facebook app groups.
Can anyone offer advice on how I should be handling this?
Taymon, here is the solution I think would fit in your case:
-Have the user login to your app with public_profile permission. From here you can capture the user's app_scope_id
-Check if the user is allowed to join the group, display Javascript dialog 'game_group_join' and invite the user to join.
- You have to link existing users with their Facebook app_scope_id after they login/connect with Facebook.