Facebook的publish_stream与offline_access上的Andr​​oid应用 [英] facebook publish_stream versus offline_access on an android app

查看:142
本文介绍了Facebook的publish_stream与offline_access上的Andr​​oid应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个Android应用程序发布的Facebook帖子。我希望它发布帖子随时随地用户presses的发送按钮。

I am making an android app that publishes facebook posts. I want it to publish posts anytime the user presses the "Send" button.

根据Facebook的开发者权限页面中,offline_access许可
使您的应用程序代表在任何时候用户进行授权的请求。默认情况下,大多数访问令牌很短的时间期满后,以确保应用程序只能使代表用户的请求时,都在积极使用的应用程序。此权限使我们的OAuth端点长寿返回的访问令牌。

According the the Facebook developer permissions page, the offline_access permission "Enables your app to perform authorized requests on behalf of the user at any time. By default, most access tokens expire after a short time period to ensure applications only make requests on behalf of the user when the are actively using the application. This permission makes the access token returned by our OAuth endpoint long-lived."

在Facebook的页面developper介绍了publish_stream权限为使您的应用程序来发布内容,评论,以及喜欢到用户的数据流和用户的朋友的流。拥有此权限,就可以将内容发布到用户的随时饲料,而不需要offline_access。但是,请注意,Facebook的建议用户启动的共享模式。

The Facebook developper page describes the "publish_stream" permission as Enables your app to post content, comments, and likes to a user's stream and to the streams of the user's friends. With this permission, you can publish content to a user's feed at any time, without requiring offline_access. However, please note that Facebook recommends a user-initiated sharing model."

所以,按照我的理解,送岗位到Facebook涂鸦墙,我应该只需要发布流许可然而,当我问只是publish_stream允许我的访问令牌仅昙花一现(两小时长)

So, as I understand it, to send posts to the Facebook wall I should only need the "publish stream permission" However when I ask for just the publish_stream" permission my access token is only short-lived (two hours long)

任何人都可以解释我是如何能够在anytiome张贴到Facebook的不使用offline_access许可?

Can anyone explain how I can post to the Facebook at anytiome without using the "offline_access permission"?

推荐答案

发布流允许你发布到用户墙上。这是需要做墙的帖子。

Publish Stream allows you to publish to the users wall. This is needed to make wall posts.

为了您的访问令牌持续比你还需要申请离线访问工期短多。这不会让你发布到用户的墙,它只是决定了你的令牌能持续多久。

In order for your access token to last more than a short duration you need to also request offline access. This doesn't allow you to post to the user's wall it just determines how long you token lasts.

在你的情况,你可能想都离线访问和发布流。

In your case, you probably want both offline access and publish stream.

这篇关于Facebook的publish_stream与offline_access上的Andr​​oid应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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