[英]Add Friend through Facebook Dialog iPhone
I've searched in google, but i didn't find anything about it. 我已经在Google中搜索过,但是没有找到任何有关它的信息。
In my iPhone app, on UIButton
tap, I need to show a FBWebDIalog
which shows a request to add a friend in Facebook account if the user isn't already your friend. 在我的iPhone应用程序中,在UIButton
,我需要显示一个FBWebDIalog
,如果该用户不是您的朋友,它会显示一个请求,要求在Facebook帐户中添加朋友。
What do you suggest to do? 您建议做什么?
I didn't find any code unfortunately. 不幸的是我没有找到任何代码。
I solved my problem with this code! 我用这段代码解决了我的问题! 😃 😃
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: facebookUserId, @"id", nil];
Then i pass this NSMutableDictionary
as param inside the code below! 然后,我将此NSMutableDictionary
作为参数传递给下面的代码!
`[FBWebDialogs presentDialogModallyWithSession:nil dialog:@"friends" parameters:params handler:nil];`
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.