开发者

"Error Domain Code=324" while upload photo using Facebook method

开发者 https://www.devze.com 2023-02-19 08:05 出处:网络
I am working with the Facebook method API with iPhone-SDK.After authorizing, I tried to upload an image, using this code:

I am working with the Facebook method API with iPhone-SDK. After authorizing, I tried to upload an image, using this code:

NSString *link = @"http://www.google.com/logos/2011/houdini11-hp.jpg";  
    NSURL *url1 = [NSURL URLWithString:link];  
    NSData *data1 = [NSData dataWithContentsOfURL:url1];  
    UIImage *img1  = [[UIImage alloc] initWithData:data1];  
    NSMutableDictionary *photos = [NSMutableDictionary dictionaryWithObjectsAndKeys:  
                                img1, @"picture",   
                                  nil];    
    [facebook requestWithMethodName:@"photos.upload"  
                  andParams:photos  
              andHttpMethod:@"POST"  
                andDelegate:self];

I got this error:

error DOMAIN = Operation could n开发者_JS百科ot be completed. (facebookErrDomain error 324.)

Thanks in advance.


You can see all error code here..

http://www.takwing.idv.hk/tech/fb_dev/faq/general/gen_10.html

So error is Missing or invalid image file

0

精彩评论

暂无评论...
验证码 换一张
取 消