有没有办法获取我从 Facebook 发布的视频的大缩略图?

发布于 2024-10-13 08:15:22 字数 643 浏览 5 评论 0原文

我正在尝试通过 FQL 或 Graph Api 获取大视频缩略图。

当我请求缩略图时,我会得到

vthumb.ak.fbcdn.net/hvthumb-ak-snc4/hs1270.snc4/158204_144210235636391_144442091_14442094442303137_100556_685_JP

.

: fbcdn.net/hvthumb-ak-snc4/hs1270.snc4/158204_144210235636391_144209442303137_10056_685_b.jpg

当我尝试另一个旧视频时,我得到: 0/15/508029674/

t508029674_402635544674_1192。 vthumb.ak.fbcdn.net/vthumb-ak-sf2p/v33376/20/15/508029674/b508029674_402635544674_1192.jpg

t 的位置不同,但如果我将其切换到 ab,我得到:

的问题是切换最后一个有没有可靠的方法来获取大型 FB 视频缩略图?这当然没有在我发现的任何地方记录下来。有没有其他方法可以可靠地从 FB 获取此链接?

谢谢,

抱歉没有发布图像或链接,我没有足够的声誉点。

I'm trying to get large video thumbnails via FQL or the Graph Api.

When I request a thumbnail I get:

vthumb.ak.fbcdn.net/hvthumb-ak-snc4/hs1270.snc4/158204_144210235636391_144209442303137_10056_685_t.jpg

I randomly noticed today though that if you change the last t to a b you get:

vthumb.ak.fbcdn.net/hvthumb-ak-snc4/hs1270.snc4/158204_144210235636391_144209442303137_10056_685_b.jpg

When I tried another older video I got:

vthumb.ak.fbcdn.net/vthumb-ak-sf2p/v33376/20/15/508029674/t508029674_402635544674_1192.jpg

The position of the t is different but if I switch it out to a b I get:

vthumb.ak.fbcdn.net/vthumb-ak-sf2p/v33376/20/15/508029674/b508029674_402635544674_1192.jpg

My question is switching the last t to b a reliable way to get large FB video thumbnails? This certainly isn't documented anywhere that I found. Is there any other way to get this link from FB reliably?

Thanks,

p.s. sorry for not posting images or links, i dont have enough reputation points.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏天碎花小短裙 2024-10-20 08:15:22

它们有许多未记录的功能。现在它有效,到目前为止一切都很好。设置一个错误标志,当时间到了并且 Facebook 没有响应你的被黑查询时,你可以找到一种新的方法。我不会为长时间的问题而烦恼。 Facebook 文档很乱,请充分利用它。顺便说一句,请确保错误消息能够引起您的注意并引起注意。不要忘记添加一些代码以优雅地降级。当查询未返回图片时,向潜在用户显示另一个占位符图片。

they have many undocumented features. For now it works, so far so good. Set an error flag, and when the time comes and facebook does not respond to your hacked query, you can find a new way. I would not bother for long time issues. Facebook documentation is a mess, make the best out of it. btw, make sure that the error message gets you and makes itself noticed. do not forget to add some code to degrade gracefully. show the potential users another placeholder picture when the query returns no picture.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文