简体   繁体   English

Facebook App邀请iOS SDK v4.0配置和状态

[英]Facebook App Invites iOS SDK v4.0 configuration and states

I have recently started to implement the new Facebook's App Invites feature. 我最近开始实施新的Facebook的App Invites功能。 The invite is sent, but my friends (or app testers in my case) whom I sent app invites to did not receive any notification. 邀请已发送,但我发送应用邀请的朋友(或我的案例中的应用测试人员)未收到任何通知。

== ==

Update : I have successfully tested out the feature. 更新 :我已成功测试该功能。 But there are something to note, see my self-accepted answer below. 但有一些事情需要注意,请参阅下面我自己接受的答案。

== ==

Having followed the tutorial , but I don't know if anything is misconfigured or how to debug the process. 按照教程 ,但我不知道是否有任何错误配置或如何调试过程。

So my questions are: 所以我的问题是:

  1. Does app invites feature needs an actual App Store app ID to be configured in the App Link meta header tag? app邀请功能是否需要在App Link元标头标签中配置实际App Store应用ID? Because, as far as I understand this feature, the main purpose of this is to recommend my friends to try out an app that I like. 因为,据我所知,这个功能的主要目的是推荐我的朋友试用我喜欢的应用程序。 The app I working on is still under development, and I see that the App Store ID field on App Link generator tool is optional . 我正在开发的应用程序仍在开发中,我看到App Link生成器工具上的App Store ID字段是optional So I think when I shared an development app to my friends, they wouldn't receive the messages. 所以我想当我向朋友分享一个开发应用程序时,他们不会收到这些消息。

  2. In the callback of of current FBSDKAppInviteDialogDelegate delegate methods , specifically appInviteDialog:didCompleteWithResults: , what kind of Invite Sent success result should I received when the invite is actually sent? 在当前FBSDKAppInviteDialogDelegate 委托方法的回调中,特别是appInviteDialog:didCompleteWithResults:当实际发送邀请时,我应该收到什么样的Invite Sent成功结果? Because, currently as I tested, when the invite is sent from Facebook 's app invites dialog, if I press Send and if the sending process success, the above delegate will only return boolean value of 1 for didComplete key. 因为,正如我测试的那样,当我从Facebook的应用程序invites对话框Send invites ,如果我按下Send并且如果发送过程成功,则上面的委托将仅为didComplete键返回布尔值1 Not sure if didComplete is that the invite was sent to the receiver, or does it meant didFinished ? 不确定didComplete是否是邀请被发送到接收者,还是意味着didFinished

Side note related to (2.) : In recent App Invite introduction video at F8 , at 18:47, there was an indicator with an letter with "Invite Sent!" 与(2.)相关的旁注 :在F8的最近的应用程序邀请介绍视频中 ,在18:47,有一个带有“Invite Sent!”的字母的指示器。 text below. 下面的文字。 When I tested out, I didn't see that. 当我测试时,我没有看到。 Could this be a (nice) beta feature? 这可能是一个(不错的)测试版功能吗?

So, after some research. 所以,经过一番研究。 To recap, in order to test the App Invite on your development app, there are something to note: 回顾一下,为了在您的开发应用上测试App Invite ,需要注意以下事项:

  • First and foremost : The first you have to do before implement the app invite feature is that you have to upgrade your project's Facebook iOS SDK to latest version 4.0. 首先 :在实施应用邀请功能之前,您必须先做的就是必须将项目的Facebook iOS SDK升级到最新版本4.0。 So more work to migrate from 3.x to 4.x 因此,从3.x 迁移到4.x需要做更多的工作

To send app invites you must use version 4.0 or later of the Facebook SDK for iOS - see the note here 要发送应用邀请,您必须使用适用于iOS的Facebook SDK版本4.0或更高版本 - 请参阅此处的注释

  • The best way is to test with your Testers accounts, who has access to app in development mode (If you don't have, you can add your test Facebook user in Roles tab in your Facebook app dashboard). 最好的方法是使用您的测试人员帐户进行测试,他们可以在开发模式下访问应用程序(如果您没有,可以在Facebook应用程序仪表板的“角色”选项卡中添加测试Facebook用户)。
  • Your should test with both users on Facebook's native mobile app (NOT simulator/device mobile browser) in order to see your invite push notification . 您应该在Facebook的原生移动应用程序(非模拟器/设备移动浏览器)上测试两个用户,以便查看您的邀请推送通知 But first, check whether the app you want to send is installed on your mobile before or not; 但首先,检查您要发送的应用程序是否已安装在您的手机上; if it is not installed, you should received push notification (see comment from FB developer advocate here ). 如果没有安装它,你应该收到推送通知(请参阅从FB开发商倡导评论点击这里 )。
  • Last but not least : make sure you configure both your app correctly, the steps are very minimal and easy to follow, make sure there is not any typo in your scheme and your invite code. 最后但并非最不重要 :确保正确配置您的应用程序, 步骤非常简单且易于遵循,确保您的方案和邀请代码中没有任何拼写错误。

Found a similar question here and answered it: 在这里找到一个类似的问题并回答:

https://stackoverflow.com/a/30929118/4888794 https://stackoverflow.com/a/30929118/4888794

Basically, the notifications only appear in the Facebook Mobile App and not on the FB website. 基本上,通知仅出现在Facebook移动应用程序中,而不出现在FB网站上。

Thank you! 谢谢!

Your should test with both users on Facebook's native mobile app (NOT simulator/device mobile browser) in order to see your invite notification, viewing on desktop would show nothing. 您应该在Facebook的原生移动应用程序(不是模拟器/设备移动浏览器)上测试两个用户,以便查看您的邀请通知,在桌面上查看将不会显示任何内容。

Really on desktop I did not have invitations but on device got it! 真的在桌面上我没有邀请但在设备上得到它!

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

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