Permission migration from publish_stream to publish_action

此生再无相见时 提交于 2019-12-01 00:48:59

publish_stream and publish_actions are two separate permissions. publish_stream does not include publish_actions.

To publish actions to the open graph, you will need to get this new permission for new users and for existing users.

You can check the permissions a user has granted your app by GETing /me/permissions from the Graph API.

In the latest version of the permissions dialog, users will have the option to NOT grant publish_stream - its always an optional permission. If the app requests publish_actions, this permission is considered required.

Once Timeline has launched beyond Developer Beta, you should not need to ask for publish_stream. If you want to publish a feed story, use the Feed Dialog.

As of now, publish_stream includes publish_actions permissions.

see https://developers.facebook.com/docs/publishing/#publish_stream

The publish_stream permission is a superset of publish_actions allowing everything that publish_actions allows plus more.

Publish_stream is Deprecated Permissions from v2.2, that's why u can not use, just only publish_action u can still use,

https://developers.facebook.com/docs/facebook-login/permissions

regards djavalatte.com

You must request publish_stream as a new permission because the prompt is much different. It is more around "Add to timeline" and a straight up permission.

To know if you have the permission, you can do many things. The easiest is to try and publish and see if it succeeds. but that will skew your metrics in insights. Better is to use the access token info endpoint and check the scopes you have there.

I have successfully published actions to the timeline with only the publish_stream permission. I cannot say if this is will be the case when it is fully launched or if it's only working because of the developer's beta. We can know for sure once we're 48 hours away from the official launch by checking out the beta tier. http://developers.facebook.com/support/beta-tier/

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