Facebook post embed in WordPress post

Posted in: Newspaper
Post count: 14

I have problems to embed Facebook posts in WordPress posts.
I try to embed:

<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = ‘https://connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v3.2&appId= – ID NUMBER CREATED BY FACEBOOK* – &autoLogAppEvents=1’;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

In Theme panel “HEader Script Code” in header, bu when I emebed Facebook posts the contents are not visible in the post or are visible incorrectly.

Can you help me?

* = I use the correct ID app generated by Facebook but maybe app Facebook is not correctly configured

Post count: 35449

Hi,

You can try to set the code in Newspaper>Theme panel>analytics>JS codes -> https://www.screencast.com/t/4ZnUa79Vtl07

Here is the documentation for Embedded Posts -> https://developers.facebook.com/docs/plugins/embedded-posts/

Thank you for your understanding!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.