检索特定用户通过 Facebook API 上传的视频列表?
假设我有一个应用程序,可以让 Facebook 用户制作拼贴画。为了让用户选择将哪些照片添加到拼贴中,我只需获取他们的相册列表,如下所示:
$facebook->api('/me/albums/');
然后我可以循环遍历该列表,从每个相册中获取照片。膨胀。我也想让他们将视频添加到拼贴画中,所以我尝试这样做:
$facebook->api('/me/videos/');
但这是不正确的 - 就像 /me/photos/
、/me/videos/
抓取用户已被标记的媒体,而不是用户上传的媒体。
有谁知道我如何检索 Facebook 用户上传的视频列表?一些相当于专辑的视频?我在新的 Graph API 和旧的 REST API 中都没有找到任何内容。感谢您的帮助!
Let's say I have an app that let's a Facebook user make a collage. In order to let users select which of their photos to add to their collage, I just grab a list of their albums like this:
$facebook->api('/me/albums/');
Then I can loop through that, getting the photos from each album. Swell. I want to let them add videos to their collage, too, so I try this:
$facebook->api('/me/videos/');
But that's incorrect — like /me/photos/
, /me/videos/
grabs media that the user has been tagged in, not media that the user uploaded.
Does anyone out there know how I can retrieve a list of videos that Facebook user has uploaded? Some video equivalent of albums? I haven't found anything in either the new Graph API nor in the old REST api. Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
'/me/videos/uploaded'
。有关可用 URL 的列表,请查看 Facebook 上的 Graph API 页面。Use
'/me/videos/uploaded'
. For a list of URLs available, check out the Graph API page on Facebook.