Facebook feed stopped working

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
johnsont
Forum Members
Forum Members
Posts: 27
Joined: Wed Sep 12, 2018 1:22 pm

Facebook feed stopped working

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Facebook feed stopped working

Post 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.
Not getting the answer you need? CMSMS support options
johnsont
Forum Members
Forum Members
Posts: 27
Joined: Wed Sep 12, 2018 1:22 pm

Re: Facebook feed stopped working

Post by johnsont »

Thank you! That was the problem. I got it working now.
Post Reply

Return to “Modules/Add-Ons”