Yogan Hoho
Yogan Hoho

Reputation: 9

how to display video from facebook pages to my website?

i created pages in facebook.Public can upload video on my page. how to display video from facebook pages to my website??(with thumbnail)

Upvotes: 0

Views: 1563

Answers (2)

Raptor
Raptor

Reputation: 54258

use Facebook Graph API.

First, use Page to get the posts with type video, then use Video to get the video.

For FQL, I think you have query similar to this:

SELECT vid, owner, title, description, thumbnail_link, embed_html, updated_time, created_time FROM video WHERE owner=20531316728

Thumbnail is in thumbnail_link.

For Graph API, you use something like: ( Try it here )

https://graph.facebook.com/19292868552/videos

the thumbnail is at data > format > picture

Upvotes: 2

Pben
Pben

Reputation: 1101

Here’s a simple trick that will let you embed any Facebook video into your web pages.

facebook videos

Every video uploaded on to Facebook has a unique ID that you can find in the browser’s address bar (look for the value of parameter "v").

Copy that number and replace it with xxx in the code below.

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

source

Upvotes: 1

Related Questions