Closed ryanboswell closed 8 years ago
Facebook has changed their embed post code to use iFrames, which won't get reversed by the <script> reversal detection. This adds support for the new format, while keeping support for the old.
<script>
Example of a new iFrame embed:
<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Ffusionmedianetwork%2Fposts%2F1513457675346872&width=500" width="500" height="508" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
Confirmed that the reversal works, and also I like the improvement to the output. :ship:
Facebook has changed their embed post code to use iFrames, which won't get reversed by the
<script>
reversal detection. This adds support for the new format, while keeping support for the old.Example of a new iFrame embed: