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

May 18, 2010 at 8:01 AM
Edited May 18, 2010 at 8: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.

Thanks,

Jul 15, 2010 at 9:17 AM

yes,i get the same problem.

GetAlbums() always returned null.

Jul 16, 2010 at 11: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 11: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 5:35 PM
Edited Jul 18, 2010 at 5: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 4:24 AM

The same problem was solved a minute ago.

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

http://d.hatena.ne.jp/t-katochin/20100727/1280200502

Jul 29, 2010 at 2: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;