我真的在为整个 OAuth 事情苦苦挣扎。我有一个要弹出的链接,打开一个对话框,将消息发布到用户的墙上。这是我的代码...
<a href="https://graph.facebook.com/dustinmcgrew/feed?
link=http://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Using%20Dialogs%20to%20interact%20with%20users.&
message=Facebook%20Dialogs%20are%20so%20easy!"><img src="images/share.gif" /></a>
当我单击链接时,它会生成此错误...
{
"error": {
"message": "An access token is required to request this resource.",
"type": "OAuthException"
}
}
我如何获得这个访问令牌,获得它后我需要用它做什么吗?Facebook 文档真的让我很生气。它为您提供的示例代码只完成了 IMO 所需的一半。
我正在使用 PHP SDK。