从facebook视频中提取720px缩略图


Extract 720px thumbnail from facebook video

我需要从视频中提取缩略图到facebook。

我应该通过json来完成,事实是我无法将图像提取到720px。

我这样做了,但我什么也没得到,没有任何错误或任何东西。

<?php 
/* 
10152765849330530 
https://www.facebook.com/video.php?v=10152765849330530&set=vb.48166220529&type=2&theater 
*/ 
$id = "10152765849330530"; 
$xml = @file_get_contents('https://graph.facebook.com/' . $id); 
$result = @json_decode($xml); 
//var_dump($result); 
echo "<br>"; 
echo "<br>"; 
echo "<br>"; 
echo "<br>"; 
echo "<br>"; 
$result = $result->format->picture; 
echo $result; 
?>

想法?

要提取的链接:

https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xfp1/v/t15.0-10/10470126_10152765850455530_10152765849330530_61772_571_b.jpg?oh=ea81bafb0b88da98068fe8697b058bd0&oe=5493EF9F&gda=1422872671_cf3d63eef79db332df7a30c8041bdd9

刚刚试着玩你的代码,现在可以工作了-

<?php 
/* 
10152765849330530 
https://www.facebook.com/video.php?v=10152765849330530&set=vb.48166220529&type=2&theater 
*/ 
$id = "10152765849330530"; 
$xml = file_get_contents('http://graph.facebook.com/' . $id); 
$result = json_decode($xml); 
echo "<pre>";
echo $result->format[0]->picture; 
?>

获取720px大小的图片-

<?php 
/* 
10152765849330530 
https://www.facebook.com/video.php?v=10152765849330530&set=vb.48166220529&type=2&theater 
*/ 
$id = "10152765849330530"; 
$xml = file_get_contents('http://graph.facebook.com/' . $id); 
$result = json_decode($xml); 
echo "<pre>";
echo $result->format[3]->picture; 
?>