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.
I’m facing this problem too, is anyone have the answer
let me know if you find any fix, for now I am using Facebook share dialog box to share the app store link .
this.fb.appInvite({
url: “App Link”,
picture: “http://example.com/image.png”
});
this is my working code, need to use app link
and must use { url: “”, picture: “” }) object
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
}
});
maybe try not to call promise
Ok Thanks, will give it a try.
Im getting error on that , "cannot open dialog "
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/