开发者

Video Source and Graph API

开发者 https://www.devze.com 2023-03-29 11:44 出处:网络
I\'ve got the following problem. I need to save a link to a FB video added by user in order to play it in the future. When I use Graph API\'s method \'me/videos/uploaded\' it returns an URL as source

I've got the following problem. I need to save a link to a FB video added by user in order to play it in the future. When I use Graph API's method 'me/videos/uploaded' it returns an URL as source parameter. I can use it to see the video but only for some period of time (one day perhaps). Is there any way to automatically determine a link to a video that works permanently?

Here is an example of source of a video:

"embed_html": "<object width="320" height="240" ><param name="allowfullscreen" value="true" /><param name="movie" value="http://www.facebook.com/v/1365218093993" /><embed src="http://www.facebook.com/v/1365218093993" type="application/x-shockwave-flash" allowfullscreen="true" width="320" height="240"></embed></object>", "icon": "http://static.ak.fbc开发者_JS百科dn.net/rsrc.php/v1/yD/r/DggDhA4z4tO.gif", "source": "http://video.ak.fbcdn.net/cfs-ak-snc6/81281/459/1365218093993_56875.mp4?oh=d6b577b50bbbce2424dda238ac4e8043&oe=4E540600&__gda__=1314129408_fbaa130dd98e78430748ee9c4c974fc2"

Any help will be much appreciated, Cheers!


Have you tried the URL the comes in the embed_html parameter as part of the <embed> tag? In your case:

http://www.facebook.com/v/1365218093993

This should permanently redirect to the video. At least it works today, two weeks after you asked the question.

0

精彩评论

暂无评论...
验证码 换一张
取 消