简体   繁体   English

Facebook弹出对话框可用吗?

[英]Facebook popup dialog available?

Is it possible to show users custom message with a single OK button in a Facebook-style dialog box, say, in an iframe app? 是否可以在iframe应用程序中的Facebook样式对话框中通过单个“确定”按钮向用户显示自定义消息? Is this dialog box available in the Facebook (Javascript) API? Facebook(Javascript)API中是否提供此对话框?

Example: 例:

在此处输入图片说明

I don't believe that Facebook allows you to display dialogs outside the ones listed in the FB:Dialog documentation on their webpage. 我认为Facebook不允许您在其网页的FB:Dialog文档中列出的对话框之外显示对话框。

However, this should be possible to implement yourself. 但是,这应该可以实现自己。 Download a copy of the Facebook.js SDK, and look for the code where it draws the dialog. 下载Facebook.js SDK的副本,并在其绘制对话框的位置查找代码。 You could then use this wherever you want to draw as many Facebook-esque dialogs as you like! 然后,您可以在想要绘制任意数量的Facebook风格对话框的任何地方使用它!

Edit: This thread from the Facebook developers forum has some good stuff on already-developed FB.ui lightbox clones: reuse facebook lightbox JS 编辑:来自Facebook开发人员论坛的该线程在已开发的FB.ui灯箱克隆上有一些不错的东西: 重用Facebook灯箱JS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM