我試圖在我的網站上嵌入facebook事件。我從與「嵌入事件」按鈕,Facebook的代碼,但它不斷拋出的錯誤:Invalid App Id: Must be a number or numeric string representing the application id.
,FB.getLoginStatus() called before calling FB.init().
和This Facebook post is no longer available. It may have been removed or the privacy settings of the post may have changed.
在頁面上包含facebook事件會引發錯誤
這是代碼:
<div id="fb-root">
</div>
<script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="#" data-width="466">
<div class="fb-xfbml-parse-ignore">
<a href="#">Post</a>
by
<a href="#">User</a>.
</div>
</div>
注:我更換了所有的href與「# 「爲了我的隱私:P
嗯,這不是一個WordPress的網站。這太奇怪了。仍然沒有想出問題... – user3601250