FBFriendPickerDelegate disappeared with Facebook v4

你离开我真会死。 提交于 2019-12-12 03:35:43

问题


I recently updated my iOS app using Facebook v3 to Facebook v4 (with Parse & Parse-UI iOS).

Problem is that FBFriendPicker seemed to disappear. Did someone find how to get such feature with the new SDK for iOS ?


回答1:


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];

For more detail please have a look into App Invite Through Facebook SDK

For generate app link please check How To Generate App Link



来源:https://stackoverflow.com/questions/30251540/fbfriendpickerdelegate-disappeared-with-facebook-v4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!