Hi all -
I am working on implementing leaderboard functionality into my game; as part of it, users should be able to access a leaderboard containing their Facebook friends where they will see their friends' FB names, portraits, score, and ranking.
I've managed to get all of those up and running, but I know already that the way I retrieve FB information is wrong. Specifically, I start by querying the retrieved entries for their Facebook account information (based on their PlayFab IDs), then query *that* data for portraits and texts, then put things into lists and arrays, then merge it all together, then pray to all the known and unknown gods of programming for it work.
I know that querying all of them in such a manner is a no-no and I'm looking for a better solution - however, I just can't seem to figure out the intended process for retrieving Facebook-specific data and associating it with each leaderboard entry. I've spent some time figuring out the ProfileConstraints feature of GetFriendLeaderboardAroundPlayerResult, but while it does return Facebook accounts, it doesn't actually return their Facebook account IDs, does it? Or am I missing something?
Would be very grateful for your help.