Amélioration de Facebook Post #907

This commit is contained in:
Amauri CHAMPEAUX 2022-03-14 11:40:21 +01:00
parent 87896a46d2
commit 9f77d5f9a9
1 changed files with 3 additions and 2 deletions

View File

@ -393,9 +393,10 @@ tarteaucitron.services.facebookpost = {
height = x.getAttribute("height"), height = x.getAttribute("height"),
url = x.getAttribute("data-url"), url = x.getAttribute("data-url"),
appId = x.getAttribute("data-appid"), appId = x.getAttribute("data-appid"),
allowfullscreen = x.getAttribute("allowfullscreen"); allowfullscreen = x.getAttribute("allowfullscreen"),
showText = x.getAttribute("data-show-text");
return '<iframe title="' + frame_title + '" src="https://www.facebook.com/plugins/post.php?href=' + encodeURIComponent(url) + '&amp;width=' + width + '&amp;show_text=false&amp;appId=' + appId + '&amp;height=' + height + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>'; return '<iframe title="' + frame_title + '" src="https://www.facebook.com/plugins/post.php?href=' + encodeURIComponent(url) + '&amp;width=' + width + '&amp;show_text=false&amp;appId=' + appId + '&amp;show_text=' + showText + '&amp;height=' + height + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
}); });
}, },
"fallback": function () { "fallback": function () {