Topic-icon User is FB-Friend

Active Subscriptions:

None
10 years 9 months ago #54604 by achsch1
User is FB-Friend was created by achsch1
Is there an easy way to check if a user logged in to FB is in my friendlist (as joomla-admin)?
The topic has been locked.
Support Specialist
10 years 9 months ago #54610 by alzander
Replied by alzander on topic User is FB-Friend
It would take some PHP code to do it and would require that you ask every user that signs up to your site grant the user_friends permission, which specifically lets your app see their friends that have also authenticated on your site. With that, you could run some code to check if they are your friend (or vice versa).

We could probably give you a code snippet that should do what you're looking for, but implementing it and 'doing' something with that knowledge would have to be done by yourself or a developer. Also, the 'user_friends' permission is something the user can choose to deny, which means that the user would be registered but they wouldn't look like a friend, even if they were. So, it could be a bit trigger and result in some false-negatives.

For more information on getting friend information, see:
developers.facebook.com/docs/graph-api/r...ce/v2.4/user/friends

I hope that helps explain,
Alex
The topic has been locked.