简体   繁体   English

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

[英]how send friend request to a person in Facebook through iPhone app?

Is there any way to send friend request through iPhone application? 有什么方法可以通过iPhone应用程序发送好友请求? 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. 请帮我。

没有API发送好友请求,必须使用Facebook的界面之一来完成

The Facebook Graph API doesn't support adding friends. Facebook Graph API不支持添加朋友。 You can get list of friends from the Facebook profile but you can not send the friend request from Facebook Graph API. 您可以从Facebook个人资料获取朋友列表,但不能从Facebook Graph API发送朋友请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM