Support » Fixing WordPress » How to display a facebook page in div?

  • Resolved michalrama

    (@michalrama)


    Hello,

    I tried to replace the iframe (which displays the facebook page) to div, but now it doesn’t display at all.

    What’s wrong with this code, please?

    <div class="fb-page" data-href="https://www.facebook.com/skolkajarni" data-tabs="timeline" data-height="650" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">
    <blockquote class="fb-xfbml-parse-ignore" cite="https://www.facebook.com/skolkajarni"><a href="https://www.facebook.com/skolkajarni">MŠ JARNÍ</a></blockquote></div>

    Thank you

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The iframe shows an external site within it. The div does not do that.
    You really should reference Facebook’s Developer documentaion, because WordPress has nothing to do with any of that. And Facebook is changing how it works tomorrow (Oct 24, 2020), so even the embeds that WP has will be removed in a release coming very soon.

    Thread Starter michalrama

    (@michalrama)

    Hello @joyously

    To make you understand me, I didn’t create this code, but I was able to figure out how to get it. Use this guide. However, even though I followed the instructions exactly (inserted the link to the page, set it up and inserted the generated codes in the required places), the facebook page is still not displayed.

    Don’t know what the problem is, please?

    That page is 3 years old. There have been many changes at Facebook since then.
    Please refer to Facebook documentation on how to do Facebook things. It is unrelated to WordPress, which is what we do here.

    Thread Starter michalrama

    (@michalrama)

    So he figured out how to solve it. I will generate the code using the Page Plugin (I will use the JavaScript SDK) and insert both codes in the required place on the web (see this video) However, the main reason why it did not appear is the AdGuard extension. After deactivation, it works without any problems. Still, I would like to solve it differently, but I will put it in a separate question.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to display a facebook page in div?’ is closed to new replies.