StephenS
Oct 09 2015

How to use Facebook Graph ID to show friends who signed up on your website
0  1K+ {{tagitem.name}}
If you store Facebook user ID in your db, you can simply use FB Open Graph API to pull friends, who signed up on your site, for that user.

https://graph.facebook.com/me/friends?access_token=yourToken


This will return:
{
"data": [
{
"name": "SomeFriend",
"id": "132443"
}
]
}

If you not stored FB ID, you can use this, with some custom params.
https://graph.facebook.com/me/friends?access_token=AUTH_TOKEN&fields=name,picture

Please Login or Sign Up to leave a reply.