2012-01-09 43 views
-1

下午好。我正致力於在網站中實現像facebook一樣的框。我已經產生了這個Facebook頁面facebook like box插件error

https://developers.facebook.com/docs/reference/plugins/like-box/

其產生下面的代碼的代碼:<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FStripeworX%2F203309163017772&amp;width=292&amp;height=300&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:300px;" allowTransparency="true"></iframe>

的問題是,當我測試在Internet Explorer中收到以下錯誤頁:

找不到 'file://www.facebook.com/plugins/likebox.php?href = https%3A%2F%2Fwww.facebook.com%2Fpages%2FStripeworX%2F203309163017772 & width = 292 & height = 300 & c olorscheme = light & show_faces = true & border_color & stream = true & header = true'。確保路徑或Internet地址是正確的。

謝謝,任何可以提供的信息都會被讚賞!

回答

2

嘗試在iframescr屬性的開頭添加httphttps。 看來您正在進行某種本地開發,並且協議的省略使得您的平臺認爲iframe的源是本地文件。

+0

是的......感謝您指出。祝你下午愉快,並感謝你的幫助。 – 2012-01-09 21:47:11

+0

沒問題 - 請將此問題標記爲已回答。 – Lix 2012-01-09 21:49:41