facebook page plugin not working properly

我的未来我决定 提交于 2019-12-10 22:18:02

问题


I need a embedded facebook page plugin. But the code generator of facebook doesn't work. When i give the url of the facebook page, the generator doens't give the code for this page.

Also doesn't appear the page in the preview modus.

The facebook page is: https://www.facebook.com/Tapas.Enschede/

The code generator is on this page. https://developers.facebook.com/docs/plugins/page-plugin/

For other facebookpages the code generator works perfect. I have no idea what the problem is.

I really appreciate any help.


回答1:


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.
  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.




回答2:


 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>


来源:https://stackoverflow.com/questions/43040962/facebook-page-plugin-not-working-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!