如何通过 iPhone 应用程序向 Facebook 中的某人发送好友请求?
有没有办法通过iPhone应用程序发送好友请求?如果是,请帮助我。我在网上搜索过但没有得到解决方案。
我收到以下代码来发送应用程序请求而不是发送好友请求
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];
请帮助我。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有 API 可以发送好友请求,这必须使用 Facebook 的接口之一来完成
There is no API to send friend requests, this must be done using one of Facebook's interfaces
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.