开发者

publish_actions permission errors

开发者 https://www.devze.com 2023-04-13 07:43 出处:网络
I\'m trying to create an app with custom actions so I\'ve added \"publish_actions\" to t开发者_JAVA百科he list of permissions requested with the access token. My test user that doesn\'t currently use

I'm trying to create an app with custom actions so I've added "publish_actions" to t开发者_JAVA百科he list of permissions requested with the access token. My test user that doesn't currently use the app can't get an access token, I get an opaque error. see

publish_actions permission errors

I saw other posts about people changing their app to "Games" to work around problems with "publish_actions" but that has made no difference whatsoever. As soon as I remove "publish_actions" from the scope, my test user can get an access token fine but when it tries to post a custom action, the response is OAuthException error "(200#) Requires extended permission: publish_actions"

Some clarity on how one can develop and test custom actions would be appreciated.


It turns out that the problem was not having an aggregation with sample save configured under "App" > "App Name" > "Auth Dialog" in the 'Aggregation Previews' section. Once that was done, it worked. Unfortunately, Facebook's error provided no indication that that was the problem or that neglecting to configure the 'Aggregation Preview' will make the publish_actions permission fail. This looks like a bug on the Facebook side.


I was having a similar problem. I had done some tests using the Open Graph Test User and, therefore, this test user had accepted the app.

After that, I added "publish_actions" to the list of permissions. However, as the test user had already accepted the app, it wasn't asking again for authorisation.

To solve this, go to settings > apps and delete your app (while you're logged in as the test user).

Next time you run the app, it should ask again for authorisation.

0

精彩评论

暂无评论...
验证码 换一张
取 消