本文介绍了FBFriendPickerDelegate在Facebook v4中消失了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近使用Facebook v3将我的iOS应用更新为Facebook v4(使用Parse& Parse-UI iOS).
I recently updated my iOS app using Facebook v3 to Facebook v4 (with Parse & Parse-UI iOS).
问题是FBFriendPicker似乎消失了.有人找到了使用新的iOS SDK来获得这种功能的方法吗?
Problem is that FBFriendPicker seemed to disappear. Did someone find how to get such feature with the new SDK for iOS ?
推荐答案
您可以将Facebook SDK替换为最新的Facebook SDK 4.x,然后尝试以下代码.
You can replace the Facebook SDK with the latest Facebook SDK 4.x and try the following code.
FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init];
content.appLinkURL = [NSURL URLWithString:@"https://fb.me/appId"];
//optionally set previewImageURL
content.previewImageURL = [NSURL URLWithString:@"http://exampleurl.jpg"];
// present the dialog. Assumes self implements protocol `FBSDKAppInviteDialogDelegate`
[FBSDKAppInviteDialog showWithContent:content
delegate:nil];
有关更多详细信息,请查看通过Facebook SDK邀请应用
For more detail please have a look into App Invite Through Facebook SDK
要生成应用程序链接,请检查如何生成应用程序链接
For generate app link please check How To Generate App Link
这篇关于FBFriendPickerDelegate在Facebook v4中消失了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!