简体   繁体   中英

facebook page plugin not working properly

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.

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.

 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. Deleted the Facebook Cookies, refreshed and all worked great then

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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