Is 'publish_actions' extended permissions available for testing?

喜你入骨 提交于 2019-12-04 13:43:37

问题


I've been trying to test out Scores and Achievements using the 'publish_actions' extended permissions but when I add it, it doesn't show up in the Request for Permission page. It's like its ignored.

I've tried a couple different ways:

$loginUrl = $facebook->getLoginUrl(array('scope' => 'publish_actions', 'canvas' => 1,    'fbconnect' => 0, 'redirect_uri'=>config_item('facebook_url')));

$loginUrl = 'https://www.facebook.com/dialog/oauth?' 
  . 'client_id=' . config_item('fbappid')
  . '&redirect_uri=' . urlencode(config_item('facebook_url'))
  . '&state=' . $_SESSION['state']
  . '&scope=publish_actions';

Both way don't work. Has anyone else had any luck testing this out?

Referencing code here: http://developers.facebook.com/blog/post/539/?ref=nf


回答1:


ran into the same problem yesterday.

i think fb will change this behaviour in the near future, but currently it seems that the app must be in the category 'game' to request the 'publish_actions' permission... (i am in the sandbox mode)




回答2:


I ran into this same issue here is what you need to do.

1) Go to the apps page https://developers.facebook.com/apps/ and select your app

2) On the left nav bar under Settings got to Auth Dialog

3) At the bottom of this page click on Configure how Facebook refers users to your app

4) You should now be able to add publish_actions permissions.

5) Read the following links (its a pain to find) https://developers.facebook.com/docs/beta/opengraph/tutorial/ https://developers.facebook.com/docs/beta/authentication/




回答3:


this might help as well (quoting facebook):

"While in Open Graph Beta, the 'publish_actions' permission can only be requested from developers and test users of your app. The 'publish_actions' permission will be ignored if requested from any other user."

it only comes up after updating the permissions inside the app configuration. lost so much time because of this lacking documantation...



来源:https://stackoverflow.com/questions/7540806/is-publish-actions-extended-permissions-available-for-testing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!