如何从其视频 ID 中获取 Facebook 视频缩略图? [英] How to get Facebook video thumbnail from its video id?

查看:29
本文介绍了如何从其视频 ID 中获取 Facebook 视频缩略图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下代码嵌入 Facebook 视频:

I am trying to embed Facebook video using the code below:

<object width="400" height="224" >
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://www.facebook.com/v/115316011865684" />
<embed src="http://www.facebook.com/v/115316011865684" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="224">
</embed>
</object>

它工作正常,但是有没有类似的方法可以从视频 ID 中显示视频缩略图?
例如:http://www.facebook.com/thumbnail/115316011865684还是别的什么?

It's working fine, but is there any similar way to show video thumbnail from video id?
For example: http://www.facebook.com/thumbnail/115316011865684 or something else?

推荐答案

你可以通过这个 Graph API URL 从视频 id 中获取缩略图图片 -https://graph.facebook.com/VIDEO_ID/picture,例如https://graph.facebook.com/115316011865684/picture

You can get the thumbnail picture from the video id by going to this Graph API URL - https://graph.facebook.com/VIDEO_ID/picture, e.g. https://graph.facebook.com/115316011865684/picture

这篇关于如何从其视频 ID 中获取 Facebook 视频缩略图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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