Facebook app invite not working on ios

#1

I am using Facebook native in my app, although i am able to use Facebook login feature and also the Facebook share dialogue in both ios and android but somehow app Invite is not working for ios, its working fine in android but for ios it just jump into the catch block of promise returned.

#2

I’m facing this problem too, is anyone have the answer

#3

let me know if you find any fix, for now I am using Facebook share dialog box to share the app store link .

#4

this.fb.appInvite({
url: “https://fb.me/1932426333708933”,
picture: “http://example.com/image.png
});

this is my working code, need to use app link

and must use { url: “”, picture: “” }) object

#5

Here is what my code looks like, still not working.

  let options={url:URL,picture:imageUrl}
    this.fbPlugin.appInvite(options).then((data)=>{
    }).catch((error)=>{
      console.log('error while inviting people',error);
      if(error.errorCode==4201){
        console.log('user discarded  fb app invite card');
      }else{
       //do some action here
      }
  });
#6

maybe try not to call promise

#7

Ok Thanks, will give it a try.

#8

Im getting error on that , "cannot open dialog "

#9

I think Facebook App invites are deprecated. Maybe that’s the reason it doesn’t work…

https://developers.facebook.com/docs/archive/docs/app-invites/