Using the Scores section of the Facebook Graph API, is there a way to request the scores of all users? Additionally, can they be requested sorted, ascending or descending?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Short Answer: No.
Long Answer: Under the Graph API, the
Userretains allApplicationdata specific to their user account. This may be for privacy reasons (to enable a user to confidently delete all of their application data at will, perhaps) or simply because Facebook has found that this relationship model is more efficient. Whatever the reason, queries on theApplicationobject can not be made to “get all Users”. Another way to look at it would beUser–has-many–>Applicationand notApplication–has-many–>User.The workaround we are using involves querying for
User–>Friends, caching the returned list of friend ID’s, and then firing off individualUser–>Application Scoreat each friend. The upside is that it works, while the downsides are that it takes more time, wastes effort querying friends who either don’t play our game or don’t share their game data, and causes some of our users to bump up against Facebook’s 600-in-600 queries-per-second limit.