facebook - How can I save player's score to Facebook with default permissions? - answerstu - answerstu.com answerstu

How can I save player's score to Facebook with default permissions?

I'm trying to integrate Facebook with my game in a very simple way - I want player to be able to see results (scores) of his friends.

Getting friends results is easy - you can just use HTTP GET request to "/APP_ID/scores" to get a list of all friends playing this game and their scores. You can do this with the default Facebook permissions with no problem.

But how do you update these scores? According to Facebook docs you have to have publish_actions permission in order to use HTTP POST request to "/USER_ID/scores".

Which requires Facebook review and approval + is a total overkill since I don't really need any real publishing privileges - I just want to update the score of the player in my game. It seems strange that some special permissions are required. Am I missing something?

Also, I have checked popular 1010 game which is installed on my device. They have facebook scores implemented, but it does not seem that they have requested any publish permissions from me - here is a screenshot of app settings in my Facebook account (they have games_activity permission, but acoording to docs it is for reading only): app settings

1 Answer

  1. Edgar- Reply

    2019-11-13

    I think it's quite clear from the docs:

    Both the Scores API and Achievements API are only available for apps that are categorized as Games.

    Because these API let developers write information about player game state to the Graph API, they both require publish_actions permissions, which is subject to Login Review. To retrieve Score and Achievement information about a player's friends, both the player and their friends need to grant the user_friends permission.

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>