Sean Mahan
Sean Mahan

Reputation: 478

Retrieve a list of videos uploaded by a particular user via Facebook APIs?

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!

Upvotes: 1

Views: 4700

Answers (1)

Nithesh Chandra
Nithesh Chandra

Reputation: 1860

Use '/me/videos/uploaded'. For a list of URLs available, check out the Graph API page on Facebook.

Upvotes: 5

Related Questions