Sharing image on facebook does not work

    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                 @"parth kausik", @"name",
                                 imageview.image, @"picture",

  [facebook requestWithGraphPath:@"me/photos" andParams:params andHttpMethod:@"POST" andDelegate:self];

hello guys these code is not working . it is not calling the request delegate and not uploading any picture.Do u have any idea..

Error is coming ....

error is:Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x6c592d0 {error=<CFBasicHash 0x6c55f70 [0x12a9b38]>{type = mutable dict, count = 3,
entries =>
    2 : <CFString 0x6c56130 [0x12a9b38]>{contents = "type"} = <CFString 0x6c56820 [0x12a9b38]>{contents = "OAuthException"}
    3 : <CFString 0x6c567c0 [0x12a9b38]>{contents = "message"} = <CFString 0x6c56720 [0x12a9b38]>{contents = "An active access token must be used to query information about the current user."}
    6 : <CFString 0x6c59020 [0x12a9b38]>{contents = "code"} = 2500
Terminating in response to SpringBoard's termination.

Add Social framework and then Import classes, and Add following code

 SLComposeViewController *facebookPostVC =[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook ];
[facebookPostVC setInitialText:@"iPhone Application"];
[facebookPostVC addURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",link]]];
[facebookPostVC addImage:[UIImage imageNamed:@"Default.png"]];
[self presentViewController:facebookPostVC animated:YES completion:nil];

Note: this is work for Xcode 4.5