从publish_stream到publish_action的权限迁移 [英] Permission migration from publish_stream to publish_action

查看:203
本文介绍了从publish_stream到publish_action的权限迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道你是否拥有publish_stream的用户权限,并且要从现在开始publish_action是否同时发布publish_stream或者是否需要重新请求用户权限?

I am wondering if you have a users permission to publish_stream and you want to publish_action from now on does publish_stream cover both or do we need to re-request the users permission?

如果是这样,最简单的检测方式是他们有这个权限授予等。

If so whats the easiest way of detecting wether they have this permission granted etc.

欢迎使用旅程建议。

我使用的登录系统是用户可以使用Facebook或其帐户凭据。

The login system I have in place is users can use with facebook or their account credentials.

但是有些用户注册没有Facebook,然后再连接。我不会在每次登录时创建会话,因为我只需要publish_stream权限,而不需要与Facebook进行实时用户会话即可在用户执行特定操作时发布。表中有一列指定用户是否连接。

But some users sign up without facebook and then connect later. I don't create the session every time they login as I only need the publish_stream permission which works without needing a live user session with facebook to post when the user does specific actions. There is one column in the table which specifies wether the user is connected or not.

欢迎提示。

谢谢!

-Stefan

推荐答案

publish_stream和publish_actions是两个单独的权限。 publish_stream不包括publish_actions。

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.

您可以通过从Graph API获取/我/权限来检查用户授予您的应用程序的权限。

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

在最新的版本的权限对话框,用户将有选项不授予publish_stream - 它始终是一个可选的权限。如果应用程序请求publish_actions,则此权限被认为是必需的。

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.

一旦Timeline超越了Developer Beta,您就不必要求publish_stream。如果您想发布Feed故事,请使用Feed对话框。

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.

这篇关于从publish_stream到publish_action的权限迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆