IOS Facebook好友邀请在facebook sdk中不起作用
<p><p>我正在做一个项目,我需要邀请 facebookfriend ,但通知未在 facebook 帐户中发送。</p>
<pre><code> NSString *frindId=[valueForKey:@"id"];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Come check out my app.",@"message",
frindId, @"to",
nil];
title:@"MyWorkOut"
parameters:params
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
// Case A: Error launching the dialog or sending request.
NSLog(@"Error sending request.");
} else {
if (result == FBWebDialogResultDialogNotCompleted) {
// Case B: User clicked the "x" icon
NSLog(@"User canceled request.");
} else {
NSLog(@"Request Sent.");
}
}
}
];
</code></pre>
<p>我已经为使用 Facebook sdk 邀请 friend 完成了上述代码。他们是使用 facebook sdk 邀请 friend 的任何解决方案吗</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>invitable_friends 仅适用于游戏,并且需要 user_friends 权限。
欲了解更多详情,请访问</p>
<p> <a href="https://developers.facebook.com/docs/graph-api/reference/user/invitable_friends/" rel="noreferrer noopener nofollow">https://developers.facebook.com/docs/graph-api/reference/user/invitable_friends/</a> </p></p>
<p style="font-size: 20px;">关于IOS Facebook好友邀请在facebook sdk中不起作用,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/30522145/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/30522145/
</a>
</p>
页:
[1]