prakash
prakash

Reputation: 184

Facebook Graph API with PHP connection

i want to display facebook friends on my website and i want to use facebook graph api for that,

please

Thanks Prakash Facebook Graph API with PHP connection

Upvotes: 1

Views: 2732

Answers (2)

Shreeni
Shreeni

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

Sudhir Bastakoti
Sudhir Bastakoti

Reputation: 100175

This tutorial might help: Facebook PHP SDK It includes example as well.

Upvotes: 2

Related Questions