android - Facebook 的应用邀请错误

标签 android facebook android-layout android-fragments android-activity

我正在尝试按照 here 的说明在 Android 和 IO 中实现 Facebook 的 App Invite。我还创建了一个静态 html 页面,其中包含本教程中提到的元数据。

<meta property="al:ios:app_name" content="Couchin'">
<meta property="al:android:url" content="couchinapp://invite_from_fb?referral=123456789">
<meta property="al:ios:url" content="couchinapp://invite_from_fb?referral=123456789"><meta property="al:ios:app_store_id" content="123456789"><meta property="al:android:app_name" content="Couchin">
<meta property="al:android:package" content="com.makeitnow.justfollow.sociallog">
<meta property="al:web:url" content="http://www.couchinapp.com/myapp.html">

但是当我尝试从我的应用程序发送邀请时,出现以下错误..

Missing App Link URL The app link used with this invite does not contain an Android or iOS URL. Developers are required to enter a URL for at least one platform.

我无法弄清楚这个问题。请帮助:(

P.S :元数据中添加的链接是假的。但我相信发送邀请时应该没有问题。当用户点击邀请时可能会产生问题,但我会处理。

更新:

After updating the required meta-tags, it was still showing the same error in the mobile app. To solve it, i went to developers.facebook.com/tools/debug, added my AppLink URL and clicked on "fetch new scrap information". Apparently mobile app was fetching the old data from the cache of the AppLink URL even after updating it. It's a Facebook's bug i guess.

最佳答案

这将帮助您设置或编辑您的 ApplinkURL:
https://developers.facebook.com/quickstarts/?platform=app-links-host

正确配置所有设置后,您将得到如下结果:

Here is the App Link URL you created: https://fb.me/12345...

关于android - Facebook 的应用邀请错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33012984/

相关文章:

android - 无法将 Firebase 设置到我的 Unity 项目 : System. Reflection.ReflectionTypeLoadException

安卓布局问题

javascript - 上传图片不仅仅适用于 Android 原生浏览器

facebook - Facebook 链接预览中的作者姓名未显示

facebook - Facebook 安全 Canvas URL 上的应用未加载

html - OAuth 对话框在 Facebook iframe 中不起作用

android - 如何在 map 图钉图像上设置索引号

android - 共享元素到 ImageView 的转换在退出时有效,但在进入时不平滑

android - 在 Android 中以编程方式添加 LinearLayout 不起作用

android - ScrollView 中的图库 View 不起作用。