Facebook'like button'返回X-Frame-Options Deny [英] Facebook 'like button' return X-Frame-Options Deny
问题描述
我正在尝试在博客的每个帖子上放置一个像按钮的脸书。代码已正确粘贴,但我收到此错误:
拒绝显示https://www.facebook.com/undefined /plugins/like.php?action=recommend&app_id...%2F&layout=button_count&locale=pt_BR&sdk=joey&share=false&show_faces=false',因为它将X-Frame-Options设置为'DENY'。
在facebook.com/之后有一个'undefined',我不知道为什么。
任何想法如何解决这个问题?
JS SDK如何进行隐式初始化(url中的init params),所以你正在做的一切正常。
正在准备一个修复程序,但是现在,你可以使用 /en_US/all.js
而不是 /en_US/sdk.js
。
I'm trying to put a facebook 'like button' on each post of a blog. The code was pasted correctly, but i'm getting this error:
Refused to display 'https://www.facebook.com/undefined/plugins/like.php?action=recommend&app_id…%2F&layout=button_count&locale=pt_BR&sdk=joey&share=false&show_faces=false' in a frame because it set 'X-Frame-Options' to 'DENY'.
There is a 'undefined' after facebook.com/, and i don't know why.
Any idea how to solve this issue?
This is unfortunately a bug in how the JS SDK does implicit initialization (the init params in the url), so you're doing everything correct.
A fix is being prepared, but for now, you can use /en_US/all.js
instead of /en_US/sdk.js
.
这篇关于Facebook'like button'返回X-Frame-Options Deny的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!