Google Graph API will not evaluate POST

According to the documentation on Facebook:

"Create or update account for user

You can publish an account or user by sending an HTTP POST request to / USER_ID / points using the access_token application if you have publish_actions permission.

So, I get the access token from the access token tool. I also confirmed that publish_actions is allowed.

When I use the Explorer API for / USER_ID / points with an access token, I get the following error:

{ "error": { "message": "A user access token is required to request this resource.", "type": "OAuthException" } } 

OK Therefore, I provide the user access token, and I get:

 { "error": { "message": "(#15) This method must be called with an app access_token.", "type": "OAuthException" } } 

What am I doing wrong here?

EDIT: It works as long as authentication is set to WEB instead of Mobile / Native.

+4
source share
2 answers

You need to FILL in the account using the application token. Since you are using the application token, you can no longer use / me, so you will need to send the message / userid / score. If the token of your application does not work, try one of them in this format temporarily: appID | appSecret

You need to first verify that the user has provided publish_actions (check by calling / userid / permissions). You also need to make sure that the application is marked as a game.

I just did it myself through Facebook Graph Explorer, and it worked: enter image description here

+3
source

If you created your own Action-Type in Open-Graph, then you should select "no" in "Requires App Token to Publish" on the Action configuration page. He fixed my problem with "(# 15) This method should be called using the access_token application."

+1
source

All Articles