facebook fb.ui 显示
我曾经使用
并解析它 FB.XFBML.parse()
。
当我切换到FB.ui时,它非常有效。但据我了解,对于“apprequests”方法,我必须显示可用模式:弹出窗口或对话框(iframe)
弹出窗口在新的浏览器窗口中打开。 diolog 在同一窗口中打开 iframe 窗口,
所以我需要知道是否可以将 FB.ui 结果渲染为 html 的一部分,就像我在
moguzalp
note 中所做的那样:我做了一个工作,在创建的 iframe 中渲染 FB.ui 结果。但这似乎不是一个好主意
i used to use <fb:serverfbml>
and to parse it FB.XFBML.parse()
.
when i switched to FB.ui, it is very effecient. but as far as i understand, for "apprequests" method, i have to display mode available: pop up or dialog(iframe)
pop up opens in a new browser window. diolog opens iframe window in the same window
so i need to know, if it is possible to render FB.ui result as a part of html, as i can do in <fb:serverfbml>
moguzalp
note: i do a work around doing an rendering FB.ui result in iframe that a create. but it seems not a good idea
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要使用 fb:serverFbml,Facebook 已经明确表示他们正在逐步淘汰这项技术,并鼓励开发人员将他们的应用程序重新编写为 iframe。 Facebook 将继续改进 FB.ui({method:'apprequests',...}) 代码。
开发人员针对其他 FB.ui 对话框的 FB 页面解决方案提出的一个问题是页面上的位置。对于超过一屏的页面,该对话框通常出现在不合逻辑的位置。如果正确使用弹出窗口作为单击事件的一部分,将为大多数用户显示。
我还创建了一篇文章,说明了新的 apprequests 方法的使用
http://af- design.com/blog/2011/02/17/using-facebook-requests-to-promote-a-website/
Don't use fb:serverFbml, Facebook has made it very clear they are phasing this technology out and are encouraging developers to re-write their applications as iframes. Facebook will continue to improve the FB.ui({method:'apprequests',...}) code.
One issue developers have raised about FB's on page solution for other FB.ui dialogs is the placement on the page. For pages that are more than a screenful, the dialog often appears in an illogical location. The Popup, if used correctly as part of a click event, will display for the majority of users.
I've also created a post illustrating the use of the new apprequests method
http://af-design.com/blog/2011/02/17/using-facebook-requests-to-promote-a-website/