Red Titan
Red Titan

Reputation: 31

Unity get facebook friend's name, score, and picture on leaderboard

The FriendSmash sample is kind of hard to follow and i was wondering if anybody had just a simple way to retrieve these using the Unity Facebook SDK?

Im pretty sure i have to use the QueryScores and ScoresCallback methods. Not sure how though.

Basically i need a way to iterate through the list of friends and retrieve each of their names, scores, and profile pictures.

Thank you!

Upvotes: 0

Views: 3321

Answers (1)

Brian Jew
Brian Jew

Reputation: 906

The graph explorer is a great way to explore and see how you can fetch names, scores and profiles: https://developers.facebook.com/tools/explorer/

The commands you put in there would be the same ones that goes into FB.API(). The JSON response should also be the same.

Upvotes: 1

Related Questions