How to get the Album and photos in facebook C# SDK

Topics: Administration, Core, General
Jan 15, 2014 at 6:46 AM
Edited Jan 15, 2014 at 6:47 AM

I am very new to windows phone 8 development, i have been trying to integrate the facebook API in my application... in fact, that's my first application, now i want to get the albums and photos of the facebook user account.... but no idea how to get it... :( i have made an helper method for this purpose (Pasted Below), it throws an exception of "'System.Collections.Generic.KeyValuePair<string,object>' does not contain a definition for 'id'"

My Question is this how can i get the facebook album's Id so that to fetch the pictures from the account... my code is pasted below.

public async void RetriveUserAlbum()
        var client = new FacebookClient(FacebookClientClass.Instance.AccessToken);
        dynamic albums = await client.GetTaskAsync("me/albums");
        foreach (dynamic albumInfo in albums)
                dynamic albumsPhotos = client.GetTaskAsync( + "/photos");
            catch (Exception Exception)
Jan 20, 2014 at 5:29 PM
Best way to troubleshoot this issue, is to put a breakpoint on the first line in the foreach loop and see which fields are available on the object.
Nov 13, 2014 at 5:49 PM
Edited Nov 14, 2014 at 5:33 AM
Nov 14, 2014 at 4:34 AM
I don't see an Orchard related question here.
Nov 14, 2014 at 5:33 AM
You're right, mister.