如何使用 GraphAPI 从 Facebook 下载视频? [英] How can I download a video from Facebook using GraphAPI?
问题描述
我想从 facebook 下载视频到客户端的本地驱动器.我看到了一些能够做到这一点的浏览器插件和 Facebook 应用程序,我想知道如何使用 GraphAPI 或以任何其他方式来做到这一点.
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.
推荐答案
首先,您获得 Graph API 对象.如果对象是public
,很简单,只要获取https://graph.facebook.com/10151651550011063.(其中数字是对象的 ID,等于 facebook 视频 URL 中的 ?v=OBJECTID
.)
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.)
如果对象不是公开的,你需要一个有效的 access_token,Graph API url 变成类似于 https://graph.facebook.com/10151651550011063?access_token=DFSDSGSFDGFGDSblabla
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
然后,在 Graph API 对象中,您将在 source
下找到视频下载链接.
Then, in the Graph API object, you'll find the video download link under source
.
这篇关于如何使用 GraphAPI 从 Facebook 下载视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!