4

Closed

Get Albums from facebook not working

description

Hi, iam using facebooktoolkit 3.0. Iam using silverlight in my application.
iam trying to get photos from facebook account..
The following code is not woking.. "iam getting error Could not deserialize data returned from server"
fb.Photos.GetAlbumsAsync(null, new Photos.GetAlbumsCallback(OnGetAlbums), null).. is not woking...
any help on this is appreciated..
Thanks in Advance..

file attachments

Closed Apr 2, 2010 at 3:58 PM by rpowers119
I have made some changes such that it will handle null created and modified dates for albums. This will be included in version 3.1.

comments

desarrollador wrote Dec 2, 2009 at 12:14 PM

I have the same error in the Photos.GetAlbums() method too.

The impact is high.

thanigai wrote Dec 4, 2009 at 9:32 PM

I'm getting the same error too....is there any other workaround to get photos from the albums?

marcusdev wrote Dec 8, 2009 at 12:03 AM

That occurs when the user doesn't have a profile pictue. see item 3

TimmyG wrote Dec 12, 2009 at 7:05 PM

I'm getting this too and confirmed that the problem is because of not having a profile picture.
The innerexceptions show there's a problem turning a string into a number.
Using fiddler to inspect the response I see that both the created and modified nodes have no value. I'm assuming herein lies the problem. Should be a SUPER easy fix to just trap for that condition.
Attached is my response xml in case it helps.