- Home /
Facebook - Get score that is one higher than your current score
Hey,
I am currently implementing some Facebook social stuff into my game, currently working on a high score system with Open Graph using the Unity Facebook SDK. I have it getting the friends and the scores and all of that, my problem now is that I want to get the profile of the user who has the score that is "one better" than my current highest.
I know that Facebook returns the scores starting from the highest first, ending with the lowest, so I have currently tried the following (written explanation because the code is a mess right now): - Iterate through the list storing current/previous User ID/score values - When the User ID == FB.UserId you have found your currently logged in players score - The stored Previous User ID should be the ID of the player who is one score higher than the current player
This doesn't seem to be working as intended, so I was wondering if there is a different way of doing this that is more reliable/"better"?
Thanks, Sosp
Your answer
Follow this Question
Related Questions
Post Score to Facebook IOS 1 Answer
Post message to Twitter / Facebook app 1 Answer
Post to Facebook app using Application.OpenURL()? 1 Answer