Facebook App邀请iOS SDK v4.0配置和状态 [英] Facebook App Invites iOS SDK v4.0 configuration and states

查看:146
本文介绍了Facebook App邀请iOS SDK v4.0配置和状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始实施新的 Facebook的App Invites 功能。邀请被发送,但我发送的应用程序邀请的朋友(或我的案例中的应用程序测试人员)没有收到任何通知。

I have recently started to implement the new Facebook's App Invites feature. 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.

所以我的问题是:


  1. 应用程式邀请功能是否需要实际的 App Store 应用ID在 App Link 元标题中进行配置?因为,据了解这个功能,这个主要目的是为了推荐我的朋友尝试一个我喜欢的应用程序。我正在开发的应用程序仍在开发中,我看到App Link生成器工具上的 App Store ID 字段是可选。所以我认为当我向朋友分享一个开发应用程序时,他们将不会收到消息。

  1. Does app invites feature needs an actual App Store app ID to be configured in the App Link meta header tag? 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. So I think when I shared an development app to my friends, they wouldn't receive the messages.

在当前 FBSDKAppInviteDialogDelegate
委托方法,具体来说
appInviteDialog:didCompleteWithResults:,什么样的邀请
发送
成功结果应该收到邀请实际发送?
由于目前正在测试中,当邀请从
Facebook 的应用程序邀请对话框,如果我按发送,如果
发送进程成功,上述委托只返回布尔
1 for didComplete 键。不确定 didComplete 是否将
邀请发送给接收者,否则意味着
didFinished

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? 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. Not sure if didComplete is that the invite was sent to the receiver, or does it meant didFinished?

与(2.。)相关的备注:在最近的<一个href =https://www.facebook.com/video.php?v=10152800554083553>应用程序邀请在F8的介绍视频,在18:47,有一个指示符与一封信邀请已发送!以下文字。当我测试出来的时候,我没看到。这可能是一个(好的)beta功能吗?

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!" 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:


  • 首先,:第一个你必须在实施应用程序邀请功能之前,请先将项目的Facebook iOS SDK升级到最新版本4.0。所以更多的工作要从 迁移 从3 .x到4.x

  • 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. So more work to migrate from 3.x to 4.x

要发送应用邀请,您必须使用4.0或更高版本的Facebook
适用于iOS的SDK - 请参阅此处的说明




  • 最好的方法是使用您的测试人员帐户进行测试,谁可以访问应用开发模式(如果没有,您可以在Facebook应用程序信息中心的角色选项卡中添加您的测试用户)。

  • 您应该在Facebook的本机移动应用(不是模拟器/设备移动浏览器),以便看到您的邀请推送通知。但首先,请检查您要发送的应用是否在您的手机上安装 如果没有安装,您应该收到推送通知(见FB开发者倡导者此处的评论))。

  • 最后但并非最不重要的:确保正确配置您的应用程序步骤非常简单,并且易于关注,请确保您的计划和邀请代码中没有任何打字错误。

    • 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).
    • 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. 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).
    • 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.
    • 这篇关于Facebook App邀请iOS SDK v4.0配置和状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆