Facebook: obtain album id just created with Photos.createAlbum

Posted by VansFannel on Stack Overflow See other posts from Stack Overflow or by VansFannel
Published on 2010-05-01T07:56:21Z Indexed on 2010/05/01 9:57 UTC
Read the original article Hit count: 324

Filed under:
|
|

Hello.

I'm developing an iPhone app that creates a Photo Album to hold the pictures that the user is going to upload.

On - (void)request:(FBRequest*)request didLoad:(id)result { I'm trying to obtain the aid returned with this code:

else if ([@"Photos.createAlbum" isEqualToString: request.method]) {

        NSLog(@"[Photos.createAlbum:dialogDidSucceed] succeed");

        NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
        NSString *aid = [[NSString alloc] initWithString: [request.params objectForKey:@"aid"]];

        [prefs setObject:aid forKey:_ALBUMID];
        [prefs synchronize];

        //[prefs release];
        [aid release];

        if (pendingUploadImage) {
            [self btnUploadImage];
        }
    }

Here said that the aid is returned, but I don't know where.

How can I obtain album id?

© Stack Overflow or respective owner

Related posts about facebook

Related posts about iphone