如何使用GraphAPI从Facebook下载视频? [英] How can I download a video from Facebook using GraphAPI?
问题描述
我想从Facebook下载视频到本地驱动器。我看到一些浏览器插件和Facebook应用程序,我可以这样做,我想知道如何使用GraphAPI或任何其他方式。
首先,获取Graph API对象。如果对象是 public
,很简单,只需获取 https://graph.facebook。 COM / 10151651550011063 。 (数字是对象的ID,等于Facebook视频URL中的?v = OBJECTID
)
如果对象不是公共的,则需要一个有效的access_token,并且Graph API的URL就像 https://graph.facebook.com/10151651550011063?access_token=DFSDSGSFDGFGDSblabla
然后,在Graph API对象中,您将在源
下找到视频下载链接。 >
I want to download a video from facebook to the clients local drive. I saw a few browser plugins and Facebook apps that are able to that and I was wondering how it can be done using the GraphAPI or in any other way.
First, you get the Graph API object. If the object is public
, it's simple, just get https://graph.facebook.com/10151651550011063. (Where the number is the object's ID, equal to the ?v=OBJECTID
in the facebook video URL.)
If the object is not public, you need a valid access_token, and the Graph API url becomes something like https://graph.facebook.com/10151651550011063?access_token=DFSDSGSFDGFGDSblabla
Then, in the Graph API object, you'll find the video download link under source
.
这篇关于如何使用GraphAPI从Facebook下载视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!