Facebook API:(SDK 版本 3)验证并发布到页面
我刚刚下载了 Facebook SDK 第 3 版,其中有一些重大变化。我的目标是让一切正常工作,以便用户可以通过身份验证,然后当他们添加新页面(不同的屏幕)时,他们可以发布到该页面。请看一下我的代码并让我知道如何修复它!目前,除了authenticate.php之外,还没有检索access_token和secret
: http://pastebin.com/y0Rdmmbs
add_page.php:http://pastebin.com/17ExQzCB
如果您有更好的代码可以使用,而不是那些文件中显示的代码,那完全是我很好。此时我只想让它发挥作用!提前致谢!
I've just downloaded the Facebook SDK Version 3 and there are some significant changes. My goal is to get everything working so a user can be authenticated, then when they add a new page (different screen) they can post to that page. Please take a look at my code and let me know how it can be fixed! Currently, the access_token and secret aren't being retrieved, among other things
authenticate.php:
http://pastebin.com/y0Rdmmbs
add_page.php: http://pastebin.com/17ExQzCB
If you have better code to use, rather than the code shown in those files, that's totally fine with me. At this point I just want it to work! Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不会为您编写代码,但我会为您指出正确的方向。
Facebook 开发人员文档绝不是维护良好的资源,但其中有关身份验证和 PHP SDK 的部分完全可以满足您的需求。在身份验证页面上,他们甚至提供了如何使用 PHP SDK 进行身份验证的示例。
I won't write your code for you, but I will point you in the right direction.
Facebook developer documentation is by no means a well maintained resource, but their sections on Authentication and the PHP SDK are perfectly fine for your needs. On the authentication page, they even have an example of how to use the PHP SDK to authenticate.