In my app I need to implement +add as friend type button to send Facebook adding as friend request. After searching the internet,I did it following the method: http://developers.facebook.com/docs/reference/dialogs/friends/
AppDelegate *delegate = (AppDelegate*)[UIApplication sharedApplication].delegate;
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
// kAppId, @"app_id",
// @"popup",@"display",
@"100000979054002",@"id",
nil];
[delegate.facebook dialog:@"friends" andParams:params andDelegate:self];
but i got an error: "An error occurred. Please try again later."
Is there somebody could give me a help? Thanks in advance.