Topic-icon Login if part of group

Active Subscriptions:

None
8 years 4 months ago #56202 by trohal
How can we set this up so that if they are part of a particular fb group THEN they can login/register else they can't. I've already got the "app id" & "secret key" for the group
The topic has been locked.
Support Specialist
8 years 4 months ago #56203 by alzander
Replied by alzander on topic Login if part of group
That's not a feature we support. If you want to screen your users, we'd recommend using the administrator activation feature and approving new users as they register. Their profile data can still be imported, speeding up the process.

I hope that helps answer your question,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 4 months ago - 8 years 4 months ago #56208 by trohal
Replied by trohal on topic Login if part of group
could jbconnect do it? I noticed its got hooks into the API.. FB api supports querying group members. I don't mind doing the coding to add the comparator would just need some guidance on where to start. Oh, and can a field be added to their profile?
Last edit: 8 years 4 months ago by trohal.
The topic has been locked.
Support Specialist
8 years 4 months ago #56246 by alzander
Replied by alzander on topic Login if part of group
JFBConnect could definitely do it. It depends on what you want to do... let the account be created but not activate it if not in the right group, or just deny the registration altogether. If you are ok with denying the registration, you can modify the autoCreateUser function in the models/loginregister.php file. The check for the user's groups is pretty simple and we already do it in the /components/com_jfbconnect/libraries/provider/facebook/channel/fields/facebookgrouplist.php file in the getOptions section. From there, you can parse through the user's groups and determine if the right one is set.

That's a very high-level overview but hopefully it helps get you started,
Alex
The topic has been locked.