如何通过iPhone应用程序向Facebook中的朋友发送朋友请求? [英] how send friend request to a person in Facebook through iPhone app?

查看:155
本文介绍了如何通过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.

这篇关于如何通过iPhone应用程序向Facebook中的朋友发送朋友请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆