搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

facebook page plugin not displaying

  • 1 回覆
  • 2 有這個問題
  • 19 次檢視
  • 最近回覆由 Shadow110

more options

Facebook page plugin code for wordpress does not display correctly in Firefox but does in IE. Firefox only shows facebook link (which works) but not the page or timeline info. Checked this on my phone and it's the same in android.

Facebook suggested code: Step 2: Include the JavaScript SDK on your page once, ideally right after the opening body tag.

<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 = 'https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.12&appId=1605012499727939&autoLogAppEvents=1';
 fjs.parentNode.insertBefore(js, fjs);

}(document, 'script', 'facebook-jssdk'));</script>

Step 3: Place this code wherever you want the plugin to appear on your page.

Facebook page plugin code for wordpress does not display correctly in Firefox but does in IE. Firefox only shows facebook link (which works) but not the page or timeline info. Checked this on my phone and it's the same in android. Facebook suggested code: Step 2: Include the JavaScript SDK on your page once, ideally right after the opening body tag. <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 = 'https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.12&appId=1605012499727939&autoLogAppEvents=1'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> Step 3: Place this code wherever you want the plugin to appear on your page. <div class="fb-page" data-href="https://www.facebook.com/x.x.x/" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/x.x.x/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/x.x.x/">xxx</a></blockquote></div>

所有回覆 (1)

more options

Hi, are you describing 2 or 3 problems ? 1 is your having issues with Firefox displaying Facebook, 2 Plugin on your own website does not work 3 Firefox on Android not working properly also

Is the above correct ?

For 2 please supply your website address or please check your code using W3C.org (World Wide Web Consortium) in charge of standards and practices and future development of web pages and web browsers make the rules on code. Mozilla Firefox follows these rules. W3C.org Who make the rules for web code. HTML https://validator.w3.org/ CSS https://jigsaw.w3.org/css-validator/ and https://validator.w3.org/i18n-checker/ and http://mobile.css-validator.org/

3 Please see here and post questions for mobile android https://support.mozilla.org/en-US/products/mobile

for 1 see if the above helps.