[問題] 臉書粉絲專頁Page Plugin問題

看板Web_Design作者 (貓吃魚)時間9年前 (2015/09/11 00:25), 9年前編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
你們好 我想利用在facebook的Page Plugin粉絲專頁的語法 嵌入到網頁的HTML攔側 且谷哥過後遇到的不是舊版的就是要嵌入痞x幫的 實在是無法解決我想嵌入HTML的問題 所以想在這請問各位~ 比如我用預設的fb粉絲專頁嵌入語法 按get code得以下: (1.) 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 = "//connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.4&appId=1637362053178471"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> (2.) Place the code for your plugin wherever you want the plugin to appear on your page. <div class="fb-page" data-href="https://www.facebook.com/facebook" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" data-show-posts="true"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/facebook"><a href="Facebook
" rel="nofollow">https://www.facebook.com/facebook">Facebook</a></blockquote></div></div> 我試過(1.)放在<head>裡面、(2.)放在body 也試過(1.)、(2.)都放在body 但都顯示不出來 大概知道我可能是放錯了卡了好幾天都找不出答案 所以想請問大家有甚麼方法可以讓它顯示出來 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 42.66.207.96 ※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1441902339.A.5AF.html ※ 編輯: miracle0715 (42.66.207.96), 09/11/2015 00:26:24 ※ 編輯: miracle0715 (42.66.207.96), 09/11/2015 00:28:51

09/11 18:01, , 1F
1放到</body>前,2任意
09/11 18:01, 1F

09/11 18:01, , 2F
另外你要在伺服跑才會有效果
09/11 18:01, 2F

09/12 21:20, , 3F
謝謝o大!
09/12 21:20, 3F
文章代碼(AID): #1LyQy3Ml (Web_Design)
文章代碼(AID): #1LyQy3Ml (Web_Design)