问题
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:
- Your page is unpublished.
- You have Age Restriction (which was my issue) activated. Any age restriction above 13+ will cause the page plugin to not work.
- 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