Facebook页面插件仅在网站上显示为链接

Nan*_*ern 0 facebook facebook-social-plugins twitter-bootstrap

我看过类似的帖子,但还没有找到答案.我正在使用Bootstrap重建我的网站,并希望添加新的页面插件.我已按照所有说明操作,在开始标记后插入Javascript代码并将其他代码插入到我的网页中.我网页上显示的所有内容都是"KMC Marine"的链接,该链接会转到我的Facebook页面,但不会显示其他插件数据.

任何建议将不胜感激.

dr.*_*nge 5

1)放下以下css代码,它将解决您的问题

<style type="text/css">
    .fb_iframe_widget span{        
        overflow: initial !important;
    }
    .fb_iframe_widget iframe{        
        width: 340px !important;
        height: 500px !important;    
    }
</style>
Run Code Online (Sandbox Code Playgroud)

2)如果您在本地运行您的网站,您必须更换

js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.4";
Run Code Online (Sandbox Code Playgroud)

js.src = "https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.4";
Run Code Online (Sandbox Code Playgroud)