Allow playing embedded videos in Facebook frame?

AI-generated summary

The discussion revolves around embedding Facebook videos directly in posts using Onebox. Bank_Live reports that embedding video links doesn’t work as expected. codinghorror explains that Facebook likely restricts this to encourage users to stay on their platform. Falco clarifies that while not supported by default, embedding Facebook videos via iframes is possible by enabling Facebook iframe sources in site settings and using the correct embed URL. Viki confirms the solution worked after adding the proper Facebook plugin URL, resolving the issue.

I try set embed link for play videos in post but not work

In post

I want this

I doubt Facebook will allow that. They want you to visit Facebook no matter what. Limitation is on their end AFAIK

That is not supported out of the box by Onebox, but if you allow iframes from Facebook on the site settings, and grab the incorporation link in a Facebook video, you will get something like:

<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FPortaDosFundos%2Fvideos%2F1981258538657064%2F&show_text=0&width=560" width="560" height="315" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>

Which should work like

Hi @Falco,
How to allow iframe from facebook in site settings?

EDIT - I added https://www.facebook.com/plugins/video.php? and it resolved my problem! :slight_smile: