我正在网页上集成 FB 社交插件 - 点赞框和点赞按钮(作为 iframe),但它们不起作用。
当我在“赞”框中单击“赞”时,我收到带有链接的“错误”文本,其中显示一个消息对话框“无法访问https://www.facebook.com/provocateur.eu的页面。”。
JSON响应是:
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":true,"error_info":{"brief":"Website Inaccessible","full":"The page at https:\/\/www.facebook.com\/provocateur.eu could not be reached.","errorUri":"\/connect\/connect_to_node_error.php?title=Website+Inaccessible&body=The+page+at+https\u00253A\u00252F\u00252Fwww.facebook.com\u00252Fprovocateur.eu+could+not+be+reached.&hash=AQARp73z7huT0Eiu"}}}
当我单击 Like 按钮时,JSON 响应是:
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":true,"error_info":{"brief":"An error occurred.","full":"There was an error liking the page. If you are the page owner, please try running your page through the linter on the Facebook devsite (https:\/\/developers.facebook.com\/tools\/lint\/) and fixing any errors.","errorUri":"\/connect\/connect_to_node_error.php?title=An+error+occurred.&body=There+was+an+error+liking+the+page.+If+you+are+the+page+owner\u00252C+please+try+running+your+page+through+the+linter+on+the+Facebook+devsite+\u002528https\u00253A\u00252F\u00252Fdevelopers.facebook.com\u00252Ftools\u00252Flint\u00252F\u002529+and+fixing+any+errors.&hash=AQAFI_8ieMUGPPxS"}}}
这是“Like box”iframe 代码:
<iframe frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:240px; height:70px;" src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fprovocateur.eu&width=240&height=70&colorscheme=dark&show_faces=false&border_color&stream=false&header=true&appId=283499041689204"></iframe>
这是“喜欢按钮”iframe 代码:
<iframe frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:203px; height:21px;" src="//www.facebook.com/plugins/like.php?href&send=false&layout=button_count&width=203&show_faces=false&action=like&colorscheme=light&font=arial&height=21&appId=283499041689204"></iframe>
管理员和非管理员访问者以及任何浏览器的行为都是相同的。我使用 appId 283499041689204 创建了与 FB 页面同名的应用程序。网页是 XHTML 过渡有效的,并且它不包含根据 FB 调试器/linter 的错误。以前有年龄限制(17 岁以上),但我删除了它,目前任何人(13 岁以上)都可以使用它。
网页网址:http: //provocateur.eu/
FB页面的URL:在第一条错误信息中
任何帮助appriciated。提前致谢。