简体   繁体   English

iOS兼容的Facebook视频链接

[英]iOS compatible facebook video link

I am trying to link to a specific video from facebook directly in iOS. 我正在尝试直接在iOS中链接到Facebook中的特定视频。 There are apps in AppStore that do exactly that (feks iLoaderLite). AppStore中有一些应用程序可以做到这一点(有点像iLoaderLite)。

I have the id of the video, and when i use the link on the mac, the video opens (using flash i suppose). 我有视频的ID,当我使用Mac上的链接时,视频就会打开(我想是使用Flash)。

The link is " http://www.facebook.com/video/embed?video_id=1432879026926621 ". 链接为“ http://www.facebook.com/video/embed?video_id=1432879026926621 ”。

When I use the same link in a webView, the webView responds by requiring flash, which of course is not available for the iOS. 当我在webView中使用相同的链接时,webView通过要求使用Flash进行响应,这当然不适用于iOS。

If I use MPMoviePlayer, nothing is loaded and I have a black screen since it cannot decode the flash video. 如果我使用MPMoviePlayer,则不会加载任何内容,并且会出现黑屏,因为它无法解码Flash视频。

How do can I link to a Facebook video in iOS? 如何链接到iOS中的Facebook视频?

Anybody has an idea??? 有人有主意吗??

Thanks in advance 提前致谢

Found it. 找到了。 Using the Graph Api explorer tool for facebook (google it), you can enter the video id, and search for the video. 使用用于Facebook的Graph Api Explorer工具(将其谷歌搜索),您可以输入视频ID,然后搜索视频。 If you output "source" you get a link with the video source in mp4. 如果输出“ source”,则将获得mp4中视频源的链接。 You can add parameters, and search for other stuff too. 您可以添加参数,也可以搜索其他内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM