NSURL *url1=[NSURL URLWithString:@"https://graph.facebook.com/100002944043966/albums?access_token=[your access token]"];
NSData *data = [NSData dataWithContentsOfURL:url1];
NSLog(@"%@",data);
NSString *str=[[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
NSLog(@"%@",str);
by using this i am able to get the json data,but how to get image from this,help me out!thanks in advance!
To get cover photo use this:
here id is cover_photo in the json that you received and access token is your session token.