Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does facebook support oEmbed?

Anyone know whether Facebook supports oEmbed for embedding videos (or other media) when a link is shared. I googled but cant get a definitive answer for this.

My question Facebook developer forum has no answer. http://forum.developers.facebook.net/viewtopic.php?pid=334549

like image 847
Aravindan R Avatar asked Apr 22 '11 04:04

Aravindan R


4 Answers

Yes Facebook supports oembed. You can checkout the documentation here..

https://developers.facebook.com/docs/plugins/oembed-endpoints

Note: In order to make this API work properly with ajax calls on mobile devices; You need to use the endpoint domain "apps.facebook.com" instead of "www.facebook.com":

https://apps.facebook.com/plugins/post/oembed.json/?url={content-url}

This is because if you use the endpoint that is provided in the official documentation "www.facebook.com" the User agent of the mobile devices will force the redirect to "m.facebook.com" which does not have this endpoint implemented.

like image 59
Yacoub Oweis Avatar answered Sep 28 '22 05:09

Yacoub Oweis


Embedly is paid. Free alternative is Noembed. :)

like image 27
marsjaninzmarsa Avatar answered Sep 28 '22 07:09

marsjaninzmarsa


No, there is no current support for oEmbed. You have two options (maybe more, but two that I know of):

  1. Embedly http://embed.ly/
  2. Engineer yourself an embedding solution for Facebook using the standard form of Facebook video embeds, eg:

http://www.facebook.com/photo.php?v=VIDEOID&set=t.SOMENUMBER&type=2

becomes

<object width="400" height="300" ><param name="allowfullscreen" value="true" /><param name="movie" value="http://www.facebook.com/v/VIDEOID" /><embed src="http://www.facebook.com/v/VIDEOID" type="application/x-shockwave-flash" allowfullscreen="true" width="400" height="300"></embed></object>

like image 30
Matthew Johnston Avatar answered Sep 28 '22 06:09

Matthew Johnston


The support is drastically changing in late 2020, to prevent anonymous access, and instead require a developer account and access token. https://developers.facebook.com/docs/plugins/oembed

like image 21
Bilbo Avatar answered Sep 28 '22 06:09

Bilbo