我正在尝试使用 HTML 5 在我的页面上包含一个简单的 Like 按钮。我在我的页面上包含了 Javascript SDK,就像文档中提到的那样,但我在 URL 上收到 404 错误。“//connect.facebook.net/en_US/all.js”
这是我的代码:http ://snipt.org/ujEg8
这是频道文件代码:http ://snipt.org/ujEh4
我不明白发生了什么事。请帮忙。
谢谢斯迈拉
我正在尝试使用 HTML 5 在我的页面上包含一个简单的 Like 按钮。我在我的页面上包含了 Javascript SDK,就像文档中提到的那样,但我在 URL 上收到 404 错误。“//connect.facebook.net/en_US/all.js”
这是我的代码:http ://snipt.org/ujEg8
这是频道文件代码:http ://snipt.org/ujEh4
我不明白发生了什么事。请帮忙。
谢谢斯迈拉
You most likely just need to add the right protocal before the // call, for example:
http://connect.facebook.net/en_US/all.js
See here for more info on the real issue: Is it valid to replace http:// with // in a <script src="http://...">?