Android 邀请具有facebook sdk错误的朋友

Android 邀请具有facebook sdk错误的朋友,android,facebook,facebook-invite-friends,Android,Facebook,Facebook Invite Friends,我根据facebook文档邀请我的朋友加入 我的应用程序有两个平台(android和ios),我想邀请我的朋友安装该应用程序,但当发现此错误时 所以我有两个平台,所以我在自己的服务器上创建了html文件并进行了测试(先用android平台进行测试,然后再添加ios链接) AppLink不是应用程序的URL,而是链接到应用程序内内容的URL 看起来您使用的URL不正确。请核实您的申请 如果您还没有URL,您可以创建我正确生成了我的应用程序链接,但我在发布question@Rohit5ks时更改了

我根据facebook文档邀请我的朋友加入 我的应用程序有两个平台(android和ios),我想邀请我的朋友安装该应用程序,但当发现此错误时

所以我有两个平台,所以我在自己的服务器上创建了html文件并进行了测试(先用android平台进行测试,然后再添加ios链接)


AppLink不是应用程序的URL,而是链接到应用程序内内容的URL

看起来您使用的URL不正确。请核实您的申请


如果您还没有URL,您可以创建

我正确生成了我的应用程序链接,但我在发布question@Rohit5ks时更改了一些数字
   <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml"    
    xmlns:fb="https://www.facebook.com/2008/fbml"><head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>my app </title>


 <meta property="al:android:urlcontent="https://fb.me/1047369566223853">
<meta property="al:android:app_name" content="myapp">
<meta property="al:android:package" content="com.myapp.android">

<meta property="og:title" content="myapp">
<meta property="og:type" content="website">
<meta property="fb:app_id" content="9935316166414594">
<meta property="og:image   
  content="http://myimage.jpg">

 <body>
 </body></html> 
    <html>
  <head>
  <meta property="al:ios:url" content="couchinapp://invite_from_fb?  
   referral=123456789" />
   <meta property="al:ios:app_store_id" content="123456789" />
   <meta property="al:ios:app_name" content="Couchin'" />
  <meta property="al:android:url" content="couchinapp://invite_from_fb?  
  referral=123456789" />
  <meta property="al:android:app_name" content="Couchin" />
  <meta property="al:android:package" content="com.mycompany.couchin" />
  <meta property="al:web:url" content="http://www.couchinapp.com/myapp.html"   
 />
</head>
<body>
Couchin App Link
</body>
  </html>
 String appLinkUrl= myserverip/folder/myhtmlfile.html

//myhtmlfile which contains links on my server
    AppInviteContent content = new AppInviteContent.Builder()
            .setApplinkUrl(appLinkUrl)
            .setPreviewImageUrl(previewImageUrl)
            .build();
    AppInviteDialog.show(InviteFacebookFriends.this, content);
    this.finish();