Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
More and more people use Facebook to upload their videos.
This article shows how to embed any Facebook video: http://www.labnol.org/internet/embed-facebook-videos-in-web-pages/9715/
It appears this is very similar to the Youtube and Vimeo embed format and could be done easily?
I'm trying to figure out if there is an "autoplay" option.
cheers
UWE
Comments
Comment #1
jec006 CreditAttribution: jec006 commentedHey,
I added a Facebook provider as a submodule (called video_embed_facebook). I also used it as an opportunity to both provide an example module that adds a handler and also to write a blog post walking through that. As soon as the blog post is published I'll link it here.
Hope that works for you, let me know if you have any issues - I didn't test it extensively.
Comment #2
jec006 CreditAttribution: jec006 commentedComment #3
mototribe CreditAttribution: mototribe commentedwow, that was quick, thank you!
I could embed a Facebook video and it played fine. I'm still trying to figure out if an autoplay is possible.
It doesn't seem to retrieve the thumbnail correct. I just got a thumbnail with a blue "?" in it.
This link describes how to retrieve the thumbnail: http://stackoverflow.com/questions/7000856/how-to-get-facebook-video-thu...
Is this beta version "save" to use in production? I couldn't tell how much it differs from the production version. It had a note about thumbnail support missing but they do seem to work for youtube?
thanks again for the quick implementation, this is absolutely fantastic!!!
UWE
Comment #4
jec006 CreditAttribution: jec006 commentedI couldn't figure out the autoplay either, I can spend more time looking at it.
That stack overflow post is exactly how I'm (trying) to do the thumbnail stuff. For whatever reason, it seems to be a permissions issue, some videos (even though they have thumbnails) show that not found image. I'll try to read more documentation on what the options for making this work are - the definite way to make it work is implementing OAUTH and then granting access to the application from facebook ... but that seems a bit overkill for this purpose. Hopefully there is an easier / better way to get the thumbnail that doesn't have these issues.
I think dev should be safe to use on prod, I don't have any open bugs right now, there are some feature requests still open (which you know) and I would like to get to those, I'll roll a beta5 soon - I just want to make sure that nothing new got broken first
Comment #5
jec006 CreditAttribution: jec006 commentedHere's a link to the blog post i was referring to
http://www.agileapproach.com/blog-entry/creating-handlers-video-embed-field
Comment #6
mototribe CreditAttribution: mototribe commentedpretty cool, thanks. Now I should be able to do it myself ;-)
Comment #7.0
(not verified) CreditAttribution: commentedfixed typo