我将一个类似 facebook 的 iframe 与某个网页的每个帖子相关,如下
<iframe src="http://www.facebook.com/plugins/like.php?href={$post_url}&
layout=button_count&show_faces=false&width=90&action=like&
font=verdana&colorscheme=light" allowtransparency="true" style="border:
medium none; overflow: hidden; width: 90px; height: 21px;" frameborder="0"
scrolling="no"></iframe>
计数效果很好,但是当单击“喜欢”按钮时,不会显示弹出窗口来输入消息。有人可以解释一下吗? (我的网站使用 Facebook 应用程序,每个页面都有 og 元数据,这会导致问题吗?)
最佳答案
https://developers.facebook.com/docs/reference/plugins/like/ :
“send - specifies whether to include a Send button with the Like button. This only works with the XFBML version.”
因此,如果您想拥有发送按钮,则必须使用 JavaScript SDK 而不是 iframe 版本来嵌入点赞按钮。
关于html - Facebook 点赞按钮的 iframe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14425123/