facebook : 在网站中加载 facebook 页面的墙内容
我有一个网站和该网站的 Facebook 页面。对于大部分新闻更新,我将它们发布在 Facebook 页面的墙上。
现在我想在我的网站上显示该 facebook 页面的墙内容,就像启用了“stream”的 facebook 的 Like Box 一样: http://developers.facebook.com/docs/reference/plugins/like-box/
但是,我只想显示流,并且完美地可以显示它我自己的演示。那么是否可以通过facebook的API只获取facebook页面的内容呢?
I have a website and a facebook page for the website. For most of the news update, I post them on the facebook page's wall.
Now I want to show the wall's content of that facebook page on my website, just like the facebook's Like Box with "stream" enabled: http://developers.facebook.com/docs/reference/plugins/like-box/
However, I only want to show the stream, and perfectly can show it in my own presentation. So is it possible to get only the content of a facebook page by facebook's API?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想如果你使用 SDK,你可以通过使用
There's a php and a javascript sdk 来获取它。
但您现在还需要访问令牌才能获取页面的提要。
编辑:这是根据您的目的修改的 example.php 的副本(来自 php-sdk)。
据我所知,你需要一个访问令牌才能使用 api 查看页面的帖子/提要,这让我认为你需要用户使用 facebook 登录......我对此相当陌生,但你应该看看了解如何获取访问令牌,因为您需要一个访问令牌。
I think if you use the SDK you can get it by using
There's a php and a javascript sdk.
But you also need an access token now to get the feed of a page.
EDIT: Here's a copy of example.php (from the php-sdk) modified for your purpose.
As far as I know you need an access token to view a page's posts/feed with the api, which makes me think that you need the user to login with facebook.... I'm fairly new to this, but you should look into how to get an access token, because you need one for this.