简体   繁体   English

我是否需要在Google Play商店中启动我的应用才能通过Facebook发送应用邀请?

[英]Do I need to launch my app on the Google Play Store in order to send app invites through Facebook?

I'm trying to send my friends on Facebook an invitation to download my app using the code provided by Facebook developers. 我正在尝试向Facebook上的朋友发送邀请,以使用Facebook开发人员提供的代码下载我的应用程序。

    String appLinkUrl, previewImageUrl;

            appLinkUrl = "https://fb.me/****9163*****";
            previewImageUrl = "imageURL";

            if (AppInviteDialog.canShow()) {
                AppInviteContent content = new AppInviteContent.Builder()
                        .setApplinkUrl(appLinkUrl)
                        .setPreviewImageUrl(previewImageUrl)
                        .build();
                AppInviteDialog.show(this, content);

The Facebook dialog successfully shows up and I'm able to send invitations. Facebook对话框成功显示,我可以发送邀请。 It even shows that it has successfully sent, however, when I contact the recipient, they don't receive the invitation. 它甚至表明已成功发送,但是,当我联系收件人时,他们没有收到邀请。

I have already made my project public, enabled Single-Sign On and Deep Linking. 我已经公开了我的项目,启用了单点登录和深层链接。

Thank you for your help and advice. 感谢您的帮助和建议。

If you are looking for push notifications, then it might be good to know that it is not guaranteed. 如果您正在寻找推送通知,那么最好不要保证它。

Test App Invites by checking for Facebook notifications. 通过检查Facebook通知来测试应用邀请。 Under certain circumstances, App Invites also sends a push notification, but this is never guaranteed. 在某些情况下,App Invites还会发送一个推送通知,但这是无法保证的。 https://developers.facebook.com/docs/app-invites/ios/#testing https://developers.facebook.com/docs/app-invites/ios/#testing

Ask the user to check in the native Facebook app under Apps > App Invites. 要求用户在“应用程序”>“应用程序邀请”下签入本地Facebook应用程序。 It should be under the last menu of the app. 它应该在应用程序的最后一个菜单下。

Also, check your App Dashboard settings for what Platforms have you added there: https://developers.facebook.com/apps/YOUR_APP_ID_HERE/settings/ 另外,请检查您的应用程序仪表板设置,以了解在其中添加了哪些平台: https//developers.facebook.com/apps/YOUR_APP_ID_HERE/settings/

The notifications will only surface on the Platforms that you support there. 通知将仅出现在您在那里支持的平台上。 eg If you have added iOS as the platform, then the notifications will only surface in iOS and not Android or www. 例如,如果您已将iOS添加为平台,则通知将仅在iOS中出现,而不会在Android或www中出现。

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

相关问题 导出后,我是否需要在Google Play上安装我的应用才能使用Facebook SDK? - Do I need to have my App on Google Play to use the Facebook SDK after exported? 如何为 Google Play 商店签署我的 flutter 应用程序? - How do I sign my flutter app for google play store? 如果未安装应用,请启动Google Play商店 - Launch google play store if app is not installed 为了将应用程序从一个Google Play开发者帐户转移到另一个帐户,我需要应用程序密钥吗? - In order to transfer app from one Google Play Dev account to another do I need the App key? Google App邀请:跟踪邀请 - Google App Invites: Tracking Invites 如果我在 Firebase 上链接一个已经在 Google Play Store 上的应用程序,是否需要填写 SHA-1? - Do I need to fill SHA-1 if I am linking on Firebase an app that is already on Google Play Store? Facebook 应用邀请已弃用 - Facebook App Invites is deprecated Facebook App邀请无法正常工作 - Facebook App Invites not working 我的Android应用程序中需要Google Play开发者帐户用于Google Analytics(分析)吗? - Do I need a Google Play Developer Account for Google Analytics in my Android app? 如果我的应用程序包名称与应用程序商店中的现有应用程序相同,我如何启动Android应用程序? - How do i launch android app if my app package name is same as existing app in app store?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM