FeedDialog using WebAuthenticationBroker

本文关键字:WebAuthenticationBroker using FeedDialog | 更新日期: 2023-09-27 18:25:13

我正在开发一个应用商店,我需要在其中发布一些消息和图像到用户的个人资料中。使用WebAuthenticationBroker,我允许用户登录,它会返回一个令牌,但我想打开Feed对话框。我怎样才能做到这一点?我读过在facebook上发布文本可以使用WebAuthenticationBroker,但找不到任何代码。所以我的问题是我需要在WebAuthenticationBroker

FeedDialog using WebAuthenticationBroker

中传递哪个url

为此,您需要将facebook发布对话框url传递给webauthenticationbroker。代码应该是这样的。

WebAuthenticationBroker.AuthenticateAndContinue(new Uri("https://www.facebook.com/dialog/feed?app_id=145634995501895&display=popup&caption=An%20example%20caption&link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2F&redirect_uri=https://developers.facebook.com/tools/explorer"))

这里的app_id是你在facebook上注册的应用id。希望这能有所帮助。

相关文章:
  • 没有找到相关文章