简体   繁体   English

iOS-Facebook如何邀请朋友下载应用程序?

[英]IOS - Facebook how to invite friends to download app?

I have an Ios app , i'm trying to implement this flow: 我有一个Ios应用程序,我正在尝试实现以下流程:

User click a button->a list of my facebook friends appears-> i select one or more friends-> to each of this friends the app sends an invite to download the app from store-> i count and save locally the number of friends invited. 用户单击按钮->出现我的Facebook朋友列表->我选择一个或多个朋友->向此朋友中的每个朋友,应用程序发送邀请以从商店下载应用程序->我计算并在本地保存朋友数邀请。

I have read documentation and the FBSDKAppInviteDialog seems to be the right choose. 我已经阅读了文档,FBSDKAppInviteDialog似乎是正确的选择。 I have implement this solution and then i have discover this: 我已经实施了该解决方案,然后发现了这一点:

  • In ios 9 i can't switch in the fb app during the login 在iOS 9中,登录期间我无法切换到fb应用程序
  • I can't know how many friends i have invited 我不知道我邀请了多少朋友
  • The safariviewcontroller can't dismiss after an invite safariviewcontroller在邀请后无法关闭
  • The documentation is invisible 该文档不可见

and maybe so on... 也许如此...

I have removed this FBSDKAppInviteDialog, it can't be a solution. 我已经删除了此FBSDKAppInviteDialog,它不是解决方案。

After hours i'm very frustrating, anyway i have see the candy crush app. 几个小时后,我感到非常沮丧,无论如何,我都看到了糖果粉碎应用程序。 It can send invites in in web browser,facebook app,mobile browers and it can select multiple facebook friends. 它可以在Web浏览器,facebook应用程序,移动浏览器中发送邀请,并且可以选择多个facebook朋友。 Anyone know how achive the same result? 有人知道同样的结果有多好吗? I can replicate with Graph? 我可以用Graph复制吗?

In ios 9 i can't switch in the fb app during the login 在iOS 9中,登录期间我无法切换到fb应用程序

This is expected behavior, on iOS9, the Facebook SDK will fallback to a SFSafariViewController based approach for most of the dialogs 这是预期的行为,在iOS9上,对于大多数对话框,Facebook SDK将回SFSafariViewController基于SFSafariViewController的方法


I can't know how many friends i have invited 我不知道我邀请了多少朋友

As far as I know, the dialogs never supported this. 据我所知,对话框从未支持过此功能。


The safariviewcontroller can't dismiss after an invite safariviewcontroller在邀请后无法关闭

This seems to be a functionality SFSafariViewController doesn't support (dismissing it from within the loaded page). 这似乎是SFSafariViewController不支持的功能(在加载的页面中将其关闭)。


The documentation is invisible 该文档不可见

The documentation for the FBSDKAppInviteDialog works fine for me ( https://developers.facebook.com/docs/app-invites/ios ). FBSDKAppInviteDialog的文档对我来说很好用( https://developers.facebook.com/docs/app-invites/ios )。 If this is not working for you, it'd be a good idea to file a bug report at https://developers.facebook.com/bugs so Facebook can look into it and fix any bugs that might be present 如果这不适合您,最好在https://developers.facebook.com/bugs提交错误报告,以便Facebook可以调查并修复可能存在的任何错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM