我要使用什么Facebook API从FB应用程序将内容远程发布到用户的墙? [英] What facebook API do I use to remotely publish things to user's walls from my FB App?

查看:83
本文介绍了我要使用什么Facebook API从FB应用程序将内容远程发布到用户的墙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个FB应用程序,用户将通过某个客户端(Android或Web)进行订阅,但是稍后需要将内容发布到他们的墙上(不是从客户端而是从服务器).假设我拥有FB-AppID,Key和用户的UserId,并且他们选择了应用程序,那么我将使用什么API来通过WGET从服务器将内容发布到他们的墙上?我对它们的各种方法感到困惑,并希望指出最友好的HTTP方法.

I have a FB App that a user will subscribe to via some client (Android or Web), but that later needs to post stuff to their wall (not from the client but from the server). Assuming I have the FB-AppID, and Key and the user's UserId, and they have opted into the app, what is the API I would use to then post stuff to their wall via WGET from my server? I'm confused by all their various methodologies, and am hoping to get pointed towards the one that's the most HTTP friendly.

推荐答案

请查看您将需要publish_stream权限才能将其推送到Facebook.

You will need publish_stream permission to push the same to facebook.

此外,您将需要来自FB的有效access_token,该访问令牌链接到已登录您的应用程序的用户.自从上次提供给您以来,标准的access_token只能在固定的时间内工作(通常为30分钟).

Also, you will need a valid access_token from FB which is linked to the user who has logged into your app. A standard access_token will work only for a fixed amount of time since it was last provided to you (typically 30 minutes).

如果您希望在上述时间之后(基本上是任何时间)发布信息,那么您还将需要offline_access权限.

If you wish to post after the said time (basically anytime), then you will need the offline_access permission also.

本质上,如果需要脱机发布帖子,则必须具有同时具有"offline_access"和"publish_stream"权限的访问令牌.

In essence, if you need to do a post offline, then you need to necessarily have an access token with both "offline_access" and "publish_stream" permissions.

这篇关于我要使用什么Facebook API从FB应用程序将内容远程发布到用户的墙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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