Page 1 of 1

Facebook feed stopped working

Posted: Mon May 10, 2021 2:28 am
by johnsont
I run multiple sites using the same templates. On several of the sites the embedded Facebook feed stopped working. I'm trying to make it work again using the code generate from Facebook (https://developers.facebook.com/docs/pl ... ge-plugin/)

It says to add this code where I want the feed displayed (https://www.dbsvt.com/):
<div class="fb-page" data-href="https://www.facebook.com/Dothan-Brook-S ... 614144330/" data-tabs="timeline" data-width="600" data-height="600" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"><blockquote cite="https://www.facebook.com/Dothan-Brook-S ... 614144330/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/Dothan-Brook-S ... 0/">Dothan Brook School</a></blockquote></div>
And to add this code in the header file, just after the opening </__body> tag. I put it in Template Types / Prototypes -> Core::Page
<div id="fb-root"></div>
<__script__ async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk. ... sion=v10.0" nonce="pGpVEyL2"></__script>
I have done both of those things, but it isn't working. What am I missing? Any suggestions?

Thanks,
Tessa

Re: Facebook feed stopped working

Posted: Mon May 10, 2021 4:52 am
by DIGI3
I don't think you have the fb-root and script tags in the correct place, they aren't showing in your rendered code. Make sure it's in the page template used by that page.

You also have mixed content which will cause other issues - load your google fonts via https.

Re: Facebook feed stopped working

Posted: Mon May 10, 2021 1:30 pm
by johnsont
Thank you! That was the problem. I got it working now.