如何使用GraphAPI从Facebook下载视频? [英] How can I download a video from Facebook using GraphAPI?

查看:170
本文介绍了如何使用GraphAPI从Facebook下载视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从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屋!

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