0

Is there any way to send friend request through iPhone application? if yes, please help me. I've searched in web but I didn't get solution.

I got the following code to send app request not to send friend request

 NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:4];
[variables setObject:[NSString stringWithFormat:@"Come and join XYZ App."] forKey:@"message"];
[variables setObject:@"url" forKey:@"picture"];       
[variables setObject:@"Hello" forKey:@"name"];
[variables setObject:@"Description" forKey:@"description"];

[_facebook requestWithGraphPath:[NSString stringWithFormat:@"/%@/feed",facebook_user_id] 
                      andParams:variables 
                  andHttpMethod:@"POST"
                    andDelegate:self];

Please help me.

Aravindhan
  • 15,608
  • 10
  • 56
  • 71
MohanVydehi
  • 356
  • 3
  • 14

2 Answers2

0

There is no API to send friend requests, this must be done using one of Facebook's interfaces

Igy
  • 43,710
  • 8
  • 89
  • 115
0

The Facebook Graph API doesn't support adding friends. You can get list of friends from the Facebook profile but you can not send the friend request from Facebook Graph API.

Stark
  • 441
  • 9
  • 29