作者miracle0715 (猫吃鱼)
看板Web_Design
标题[问题] 脸书粉丝专页Page Plugin问题
时间Fri Sep 11 00:25:37 2015
你们好
我想利用在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="
https://www.facebook.com/facebook">Facebook</a></blockquote></div></div>
我试过(1.)放在<head>里面、(2.)放在body
也试过(1.)、(2.)都放在body
但都显示不出来
大概知道我可能是放错了卡了好几天都找不出答案
所以想请问大家有甚麽方法可以让它显示出来
谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 42.66.207.96
※ 文章网址: https://webptt.com/cn.aspx?n=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
1F:推 oToToT: 1放到</body>前,2任意 09/11 18:01
2F:→ oToToT: 另外你要在伺服跑才会有效果 09/11 18:01
3F:→ miracle0715: 谢谢o大! 09/12 21:20