简体   繁体   English

facebook页面插件无法正常工作

[英]facebook page plugin not working properly

I need a embedded facebook page plugin.我需要一个嵌入式 facebook 页面插件。 But the code generator of facebook doesn't work.但是facebook的代码生成器不起作用。 When i give the url of the facebook page, the generator doens't give the code for this page.当我给出 facebook 页面的 url 时,生成器不会给出这个页面的代码。

Also doesn't appear the page in the preview modus.也不会出现在预览模式中的页面。

The facebook page is: https://www.facebook.com/Tapas.Enschede/脸书页面是: https ://www.facebook.com/Tapas.Enschede/

The code generator is on this page.代码生成器在此页面上。 https://developers.facebook.com/docs/plugins/page-plugin/ https://developers.facebook.com/docs/plugins/page-plugin/

For other facebookpages the code generator works perfect.对于其他 facebookpages,代码生成器可以完美运行。 I have no idea what the problem is.我不知道问题是什么。

I really appreciate any help.我真的很感激任何帮助。

I had the same issue today.我今天有同样的问题。

Check to see if:检查是否:

  1. Your page is unpublished.您的页面未发布。
  2. You have Age Restriction (which was my issue) activated.您已激活年龄限制(这是我的问题)。 Any age restriction above 13+ will cause the page plugin to not work.任何超过 13 岁的年龄限制都会导致页面插件无法工作。
  3. You have Country Restrictions activated.您已激活国家/地区限制。

Any of the above will cause the page plugin not to display.以上任何一种情况都会导致页面插件不显示。

You can find these settings in the General tab in your page settings.您可以在页面设置的常规选项卡中找到这些设置。

 In my case,I remove the heading (h4) from the class="fb-page".Working now.

Old Code旧代码

<div class="fb-page" data-href="https://www.facebook.com/PageTest/"
                         data-tabs="timeline" data-small-header="false"
                         data-adapt-container-width="true"
                         data-hide-cover="false" data-show-facepile="true">

                        <h4 class="center">Follow Us On Facebook</h4>


                        <blockquote cite="https://www.facebook.com/PageTest/" class="fb-xfbml-parse-ignore"><a
                                href="https://www.facebook.com/PageTest/">Testing.</a></blockquote>


                    </div>

New Code新代码

<div class="fb-page" data-href="https://www.facebook.com/PageTest/"
                             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/PageTest/" class="fb-xfbml-parse-ignore"><a
                                    href="https://www.facebook.com/PageTest/">Testing.</a></blockquote>


                        </div>

I found it was due to some stale Facebook Cookies on my browser.我发现这是因为我的浏览器上有一些陈旧的 Facebook Cookie。 Deleted the Facebook Cookies, refreshed and all worked great then删除了 Facebook Cookie,进行了刷新,然后一切正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM