How can I request the “publish_actions” permission?

三世轮回 提交于 2019-12-12 12:10:04

问题


Washington Post (https://www.facebook.com/dialog/permissions.request?app_id=225771117449558&display=page&next=https%3A%2F%2Fapps.facebook.com%2Fwpsocialreader%2F%3F&type=user_agent&canvas=1&perms=user_about_me%2Cuser_likes%2Cpublish_actions") is able to request the publish_actions permission.

It says this on 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.

When I try requesting the permission from non-developers, this shows up:

Logging in will not add this app's activity to Facebook.


回答1:


Requesting publish_actions currently works as follows

  1. If your app is in the Games category and you're using the Scores and Achievements API
  2. For testing the new Open Graph custom objects and actions - this will only work for developers/test users of the app who have Timeline enabled - to use it with regular users you'll have to wait until after Timeline launches and apps start getting approved to use the new APIs



回答2:


Yes, this will work only when the timeline is rolled out to everyone. When is the revised date, I am not aware.




回答3:


In addition to the Facebook app authentication settings, you have to updated your fb:login-button to request the publish_actions permission.

See: Facebook Developers - Login Button




回答4:


Request for publish_action

LoginManager.getInstance().logInWithPublishPermissions(this,Arrays.asList("publish_actions"));

But on 1st, August 2018 Facebook announced new policy so, After 1st, August 2018 publish_action no longer available for Facebook share post programmatically.

Read More about Facebook Updated Policy: click here




回答5:


User this function

function postToFacebook() {
 FB.ui({
  method: 'feed',
  link: 'www.fb.com/mahfuzcmt',
  caption: 'bitSoft',
 }, function(response){});
}

and call

 <a href="#" onClick="postToFacebook()">Post to Facebook</a>

reference



来源:https://stackoverflow.com/questions/8022510/how-can-i-request-the-publish-actions-permission

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