Can't embed Facebook videos
-
NienteAnsia.org -
2. August 2022 um 20:10 -
Erledigt
-
-
Tim Düsterhus
3. August 2022 um 10:12 Hat das Thema aus dem Forum Allgemeine Diskussionen nach Hilfe und Support zu WoltLab Suite verschoben. -
I add that I also tried to install the MediaProvider Collection plugin, but the Facebook videos still do not appear.
-
The format of the URL you're posting is wrong.
-
The format of the URL you're posting is wrong.
Thanks, and the correct one would be..?
-
-
Standard URLs from Facebook like this: https://www.facebook.com/RaiPlay.it/videos/1059491774481091
Thanks.
-
Replace the contents of the regular expression box with:
Code(?<HREF>https?://(www\.)?facebook\.com/watch/?\?v=(?<ID>[0-9]+)) (?<HREF>https?://(www\.)?facebook\.com/[a-zA-Z0-9_\.-]+/videos/(?<ID>[0-9]+)) (?<HREF>https?://fb\.watch/(?<ID>[a-zA-Z0-9_-]+)/)
Set as HTML code:
Code<div class="fb-video" data-href="{$HREF}" data-allowfullscreen="true">{$HREF}</div> <script>require(['WoltLabSuite/Core/Wrapper/FacebookSdk'],function(FB){FB.XFBML.parse()})</script>
Remove the PHP class name.
-
-
Is the provider enabled?
-
Is the provider enabled?
Yes.
-
I've upgraded the regular expression. Try that one.
-
Zitat
The regular expression failed to validate.
I get this error when i save changes.
-
My bad. Try again.
-
It doesn't work yet BUT I found that if I insert the link between the "media" tags the video is converted. May that help you find a solution? Thank you very much for your patience.
-
Update: after clearing the cache the previous link works even without the "media" tags.
But a link like this doesn't work yet: https://www.facebook.com/watch?v=1510597069375982
-
Updated the expression again
-
Updated the expression again
You are great, everything seems to work now! You have helped me tremendously and I am very grateful to you.
Just one last thing but I wouldn't want to abuse your patience: it would be possible to reduce the size of the preview window? Now it's a little too big.
Thank you again.
-
-
I added the code in the global CSS (right?) But sadly the size remains the same as before.
-
Can't reproduce that. However, try 600px !important then.
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!