根据 Facebook 用户界面呈现新闻源
我正在开发一个 Facebook 应用程序,用于获取登录用户的新闻源并呈现它。目前,我使用 iframe 并使用 PHP SDK 调用 Graph API 来获取帖子并渲染它们(通过 PHP 在服务器端生成)。为了模仿类似 facbeook 的外观和感觉,我模仿了他们的风格,我在这方面取得了一些成功,但不是很成功。
我想知道 Facebook API 是否有办法为我做同样的事情?我读到了有关 FBML 的信息,但有一个弃用警告,并指出他们正在逐渐将内容转向 Javascript SDK。
有什么想法吗?
I am developing a facebook application that fetches the newsfeed of the logged in users and renders it. Currently, I am using iframe and I use PHP SDK to call the Graph API to fetch the posts and render them (generate on server side via PHP). To emulate the facbeook like look and feel, I mimicked their styles on which I am somewhat successful but not very much.
I am wondering is there a way in Facebook API to do the same for me? I read about the FBML but there is a deprecation warning along with a notice that they are gradually moving things towards their Javascript SDK.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,您已经缩小了 XFBML(Javascript API)为您提供的范围。
我不久前遇到了同样的问题,这个网站救了我 - http://devtaulous.com/articles/bkonrad/how-to-style-an-application-like-facebook/
facebook 使用了一些基本样式。
祝你好运。
Well, you are narrowed to what XFBML (The Javascript API) offers you.
I had the same problem a while ago and this site saved me - http://devtacular.com/articles/bkonrad/how-to-style-an-application-like-facebook/
There are some basic styles that are used by facebook.
Good luck.