如何提取直接的facebook视频网址 [英] How to extract the direct facebook video url

查看:553
本文介绍了如何提取直接的facebook视频网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Facebook视频链接中提取Facebook视频文件页面的网址,但我无法继续操作。

I am trying to extract the url for facebook video file page from the facebook video link but I am not able to proceed how.

例如:
我的Facebook视频网址是:
https://www.facebook.com / nerdandco / videos / 1662140250706521 /

我要提取的facebook视频文件网址是:
https://video-ord1-1.xx.fbcdn.net/hvideo-xpf1/v/t42.1790-2/12616394_491864644347782_1646982338_n.mp4?efg=eyJybHIiOjU2NywicmxhIjo1MTIsInZlbmNvZGVfdGFnIjoidjNfNDI2X2NyZl8yM19tYWluXzMuMF9zZCJ9&rl=567&vabr=315&oh= 333a80044ec836e9b2228afb58cba6c1& oe = 56A51D9B

The facebook video file url I want to extract is: https://video-ord1-1.xx.fbcdn.net/hvideo-xpf1/v/t42.1790-2/12616394_491864644347782_1646982338_n.mp4?efg=eyJybHIiOjU2NywicmxhIjo1MTIsInZlbmNvZGVfdGFnIjoidjNfNDI2X2NyZl8yM19tYWluXzMuMF9zZCJ9&rl=567&vabr=315&oh=333a80044ec836e9b2228afb58cba6c1&oe=56A51D9B

如何使用php或javascript获取此URL?
提前致谢:)

How to get this url using php or javascript? Thanks in advance :)

推荐答案

以下是HTTP GET命令示例...

Here is an example HTTP GET command...

https://graph.facebook.com/v2.5/nerdandco/videos/?fields=backdated_time_granularity,content_category,copyrighted,backdated_time,created_time,description,embeddable,permalink_url,from,embed_html,source,icon,id,is_instagram_eligible,length,picture,place,privacy,published,status,scheduled_publish_time,title,updated_time,captions,comments,sharedposts,likes,tags,thumbnails&limit=10&access_token=<RETRIEVE YOUR OWN ACCESS TOKEN>

请注意,您可以使用您要查询的字段,用户名和对象'请求(在这种情况下,视频)。

Notice that you can play around with the fields you're querying for, the username and the objects you're requesting (in this case, videos).

但是,请注意,您必须创建自己的访问令牌,并且您所做的查询将在您的名字上显示您的姓名, (所以不要滥用这个)。

However, also notice that you must create your own access tokens and that queries you make will have your name on them, (so don't abuse this).

你可以在他们的Graph Explorer工具中使用Facebook的API来玩(并创建你自己的访问令牌):
< a href =https://developers.facebook.com/tools/explorer/ =nofollow> https://developers.facebook.com/tools/explorer/

You can play around (and create your own access token) with Facebook's API in their Graph Explorer Tool: https://developers.facebook.com/tools/explorer/

我建议在Facebook开发者网站上阅读更多内容。

And I'd recommend reading up some more in the Facebook Developers site.

祝你好运! :)

这篇关于如何提取直接的facebook视频网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆