damienprybis
Forum Replies Created
-
you’re welcome ??
i’ve been posting a few posts including videos, and jetpack shared those on my fb page, and everything seems to work properly ??
Maybe just one annoying thing, but i believe its a facebook problem. When clcked, the tumbnail on the facebook share expands a little in order to play the video, but it expands a little bit too far – out of the share box.
Dunno why its doing that, but seems to be a facebook problem and nothing to do with your great plugin ??
@++
damien
hi there !
I faced the same problem and found a fix.
After anylising how fb handles youtube video with open graph, i found that the og:video meta was using a wrong url style https://www.youtube.com/embed/*** where it should be https://www.youtube.com/v/***
So I added this :
$og_video['og:video'] = 'https://www.youtube.com/v/'.$match[2].'';
after line 1013 of nextgen-facebook.php which contains :
$og_video['og:image'] = 'https://img.youtube.com/vi/'.$match[2].'/0.jpg';
now when sharing a post with a video inside it works properly and the video can be played on embed yt player on facebook.
I’m sure this is not a clean way of doing it and that you’ll find a better way of renaming the yt video url for it to get properly embed by facebook on posts.
do you think you could add this fix to the plugin so it would work in the future in case of updates ?
thanks a lot for the GREAT WP plugin ??
Damien