api.Photos.GetAlbums(); doesn't work

May 18, 2010 at 7:01 AM
Edited May 18, 2010 at 7:57 AM

Looks like FB needs this permission user_photos before running this function.

I've added [FacebookAuthorization(IsFbml = true, RequiredPermissions = "user_photos")] but FTD latest source code (50207) can't allow users to get that permission.


Jul 15, 2010 at 8:17 AM

yes,i get the same problem.

GetAlbums() always returned null.

Jul 16, 2010 at 10:34 AM

I am facing the exact same problem - Getalbums return null (no albums).

I have searched the internet for two days without any results.

Could someone please post their ASP.NET code that acutally works that would retrieve a users albums!.

Also, is it possible to Connect without the annoying popup simply from codebehind ?


Jul 18, 2010 at 10:11 AM

Me Too, it seem Facebook have update their permission setting, because my firefox extension - facebook toolbar also suddenly fail to get album.

Jul 18, 2010 at 4:35 PM
Edited Jul 18, 2010 at 4:35 PM

I have search about this issue, i saw from StackOverFlow

Someone say GetAlbum() Call is about the new data permission, at this times, GetAblum() call is only work via Graph API.


Jul 27, 2010 at 3:24 AM

The same problem was solved a minute ago.

You open Facebook.csproj, and correct Enums.cs.


Jul 29, 2010 at 1:30 PM

You could try out facebookgraphtoolkit.codeplex.com. The code is pretty simple to accomplish what you are trying to do, and it works. :) 


FacebookApp app = new FacebookApp("access_token_here");
dynamic result = app.Api("userId/albums");
int count = result.data.Count;