Facebook页面插件仅在网站上显示为链接 [英] Facebook Page Plugin appears as link only on website

查看:100
本文介绍了Facebook页面插件仅在网站上显示为链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过类似的帖子,但没有找到答案。我使用Bootstrap重建我的网站,并希望添加新的页面插件。我已经遵循了所有的说明,在开始标签之后插入Javascript代码,并将其他代码插入到我的网页中。所有出现在我的网页上的链接是一个KMC Marine的链接,它将转到我的Facebook页面,但没有其他插件数据出现。

I have seen similar posts, but haven't found an answer. I am rebuilding my website using Bootstrap and would like to add the new Page Plugin. I have followed all the instructions, inserting the Javascript code after the opening tag and inserting the other code into my web page. All that appears on my webpage is a link that reads "KMC Marine", which DOES go to my Facebook page, but no other plugin data appears.

任何建议将非常感谢。

推荐答案

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

1) put following css code, it will solve your problem

<style type="text/css">
    .fb_iframe_widget span{        
        overflow: initial !important;
    }
    .fb_iframe_widget iframe{        
        width: 340px !important;
        height: 500px !important;    
    }
</style>

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

2) if you are running your website locally you have to replace

js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.4";

js.src = "https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.4";

这篇关于Facebook页面插件仅在网站上显示为链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆