IOS facebook sdk how to upload an album, photo profile data

I would like to allow my iPhone App users to view and select from their Facebook profile photos, upload a photo to use as a pic profile. I am currently using SDO SSO for Facebook and am successfully logging in and accessing Graph information. We tried to access the photo information (after successfully logging in to the SSO system) using

[facebook requestWithGraphPath:@"me/albums"];

but I just get an empty data object in return. I tried using the Facebook API explorer , which is very useful, and it gives me data for / picture and / photos and / albums.For some reason, I do not get the same data using requestWithGraphPath with me / albums, me / picture or me / photographs. It’s just that “I” works fine, but it does not give me any information about the image. Can someone tell me what I am doing wrong?

Note: this is a reference to the API: Facebook API

I got a profile profile so that it works as follows:

[facebook requestWithGraphPath:@"me?fields=picture"];

Update: indeed, I want all profile photos to be a photo album, so I need to know how to access albums through iOS. The profile picture I successfully received now.

"user_photos" "friends_photos" API:

    NSArray *permissions = [[NSArray alloc] initWithObjects:
                            @"user_likes",
                            @"user_birthday",
                            @"email",
                            @"publish_stream",
                            @"publish_actions",
                            @"user_photos",
                            @"friends_photos",
                            nil];
    [facebook authorize:permissions];

, , JSON ( : didLoad:), :

 {
    data =     (
    );
}

:

- (void) request:(FBRequest *)request didLoad:(id)result{
    NSLog(@"%@",result);

}

. , , , ! , iPhone facebook, .

: facebook iPhone SDK?

+5
2

, , - .

, "user_photos", "friends_photos". , - , .

, JSON SSO, :

[facebook requestWithGraphPath:@"me/albums" andDelegate:self];

JSON ( data) , . ID (, "123456789" ), :

NSString * albumId = @"123456789";
NSString * path = [NSString stringWithFormat:@"%@/photos", albumId];
[facebook requestWithGraphPath:path andDelegate:self];

, , FBRequestDelegate request:didLoad, JSON.

+8

FBGraph Api . facebook http://developers.facebook.com/docs/reference/api/.

-

pic UIAlertView. , .

+1

All Articles