gpt4 book ai didi

facebook - iframe 应用程序中的 FB.ui stream.publish 显示弹出窗口而不是 iframe 对话框

转载 作者:行者123 更新时间:2023-12-04 01:20:36 25 4
gpt4 key购买 nike

我正在尝试使用以下代码显示“共享”对话框,但它显示为一个新窗口。这是 Facebook 内部的 iFrame 应用程序。有人知道如何让它在标准 FB 对话框 iframe 而不是新窗口中显示“共享”吗?

<script src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
FB.ui({ method: 'stream.publish', message:'hello world'});
</script>

最佳答案

尝试

FB.ui({display: 'iframe' method: 'stream.publish', message:'hello world'});

这将尝试打开一个 iframe。但是,我还没有成功加载它。 :(

关于facebook - iframe 应用程序中的 FB.ui stream.publish 显示弹出窗口而不是 iframe 对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2749908/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com