Facebook application invites you to use ionic (cordova telephone service)

I would like to implement the Facebook application in my mobile application so that users can invite their friends to my application. I am using a hybrid structure called Ionic (cordova), but cannot find a way to invite my friends. There are Facebook plugins from ng-crodova, but they do not process applications. Is there any plugin or simple solution for this feature to work?

+9
cordova cordova-plugins ionic-framework phonegap-plugins facebook-invite-friends
source share
2 answers

You can use this plugin:

https://github.com/jeduan/cordova-plugin-facebook4

Its just the plugin plugin ngCordova Facebook Wizcorp / phonegap-facebook-plugin .

Then you can use appInvite as follows:

facebookConnectPlugin.appInvite( { url: "http://example.com", picture: "http://example.com/image.png" }, function(obj){ if(obj) { if(obj.completionGesture == "cancel") { // user canceled, bad guy } else { // user really invited someone :) } } else { // user just pressed done, bad guy } }, function(obj){ // error console.log(obj); } ); 
+1
source share

I think you can follow the below Github documentation, which for Angular

https://github.com/MurhafSousli/ngx-sharebuttons

May also work for Ionic. you can check

0
source share

All Articles