HenryM
HenryM

Reputation: 5793

Django template not loading Facebook iFrame in Firefox

I am trying to load a Facebook Newsfeed iFrame into a Django template using

<iframe src="https://www.facebook.com/plugins/page.php?href={{ obj.facebook_address }}&tabs=timeline&width=500&height=750&small_header=true&adapt_container_width=true&hide_cover=true&show_facepile=true&appId=myappid" width="500" height="750" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>

This works when browsed with Chrome, but not Firefox or Edge. With Firefox and Edge I get a Facebook error message

Your request couldn't be processed There was a problem with this request ...

If I take the src from the iFrame (ie https://www.facebook.com/plugins/page.php?href={{ obj.facebook_address }} and post that as the url then I get the iFrame loaded into my Firefox browser so I think it is something to do with my site causing the issue (presumably the headers), but I cannot work out what it is. Of course, thinking it the headers could be a red herring.

I can get the feed to show if I disable Enhanced Tracking Protection in Firefox, but I cannot believe other sites simply allowing this to slide so I think there must be a solution which doesn't depend on the user amending the settings

I've spent 5 hours trying to work out the issue and I have got nowhere. Any help much appreciated

Upvotes: 0

Views: 386

Answers (1)

Honza Kovanda
Honza Kovanda

Reputation: 26

It’s a bug on FB side, occured few days ago. We have to be patient and just wait. https://developers.facebook.com/support/bugs/2774586826149402/

Upvotes: 1

Related Questions