I'm using this code to upload a photo on the Facebook user wall but the result dictionary return to me only photoid and postid, i need to know the permission level of the post that i have just share (during sharing process in native app the user can select Public,friends,only me...), There a way to know this permission?
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"", @"message", nil];
[params setObject:Picture forKey:@"source"];
[FBRequestConnection startWithGraphPath:@"me/photos"
parameters:params
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error)
{
if (error)
{
//showing an alert for failure
}
else
{
//showing an alert for success
NSString *phoId=[NSString stringWithFormat:@"%@",[result valueForKey:@"id"]];
NSString *PostId=[NSString stringWithFormat:@"%@",[result valueForKey:@"post_id"]];
}
}];
0 comments:
Post a Comment