是否可以获取多个Facebook用户的访问令牌? [英] Is it possible to get access token for multi facebook user?

查看:74
本文介绍了是否可以获取多个Facebook用户的访问令牌?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Facebook C#SDK 5.3.2创建了Web应用程序。我可以把信息发送到我的墙上。但是我想为我的朋友facebook帐户收集访问令牌,并将其存储以便稍后将消息发送到他们的墙上。是否可以通过他们的Facebook帐户信息获取访问令牌。我可以通过应用程序ID和应用程序秘密获取访问令牌,我还需要为我的firends Facebook添加应用程序以获取此凭证,对我来说是迫切的请帮助!

i created web application using facebook C# SDK 5.3.2. I can post messages to my wall. But i want to collect access tokens for my friends facebook accounts and store them to use later to post messages to their wall. Is it possible to get their access token with their facebook account info. I can get access token for myself with "App ID" and "App Secret. Do i need also add application for my firends facebook to get this crediantials. It is urgent for me please help!!

推荐答案

您不需要为任何用户存储 access_token ,因为它是基于时间的
相反,请求 publish_stream 许可并使用应用程序access_token发布消息到墙上

You don't need to store access_token for any user, since it's something time based. Instead ask for publish_stream permission and post messages to their wall using application access_token

从Facebook上的文档 publish_stream 权限:

From Facebook documentation on publish_stream permission:


使您的应用将内容,评论和喜好发布到用户的视频流通过此权限,您可以随时将内容发布到用户的Feed,而不需要offline_access 。但请注意,Facebook建议使用用户启动的共享模式。

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用户的访问令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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