Reputation: 184
i want to display facebook friends on my website and i want to use facebook graph api for that,
Thanks Prakash Facebook Graph API with PHP connection
Upvotes: 1
Views: 2732
Reputation: 3307
Generate an access token for yourself by going to https://developers.facebook.com/tools/explorer and then you may be able to retrieve your friends by accessing https://graph.facebook.com/_YOUR_USER_ID_/friends?access_token=xx and then the profile images can be retrieved using the following graph API call - https://graph.facebook.com/_FRIEND_PROFILE_ID_/picture?type=square
Of course, for more details, the Facebook Documentation (https://developers.facebook.com/docs/) is where you go to.
Upvotes: 0
Reputation: 100175
This tutorial might help: Facebook PHP SDK It includes example as well.
Upvotes: 2