如何通过iPhone应用程序向Facebook中的朋友发送朋友请求?

问题描述:

有没有办法通过iPhone应用程序发送好友请求?如果有,请帮助我。我在网上搜索过,但我没有得到解决方案。

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];

请帮帮我。

Facebook Graph API不支持添加好友。您可以从Facebook个人资料中获取朋友列表,但无法从Facebook Graph API发送好友请求。

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.