Sign in to follow this  
Doyban

How to send invitation to Facebook friends on iOS using Cordova?

Recommended Posts

With exactly the same codebase I have perfectly working Facebook events on Android. However, on iOS it doesn't works. I'm using https://github.com/jeduan/cordova-plugin-facebook4 for this and tried to set some alerts to see the error code or something (note `alert` in the code, for debugging purposes), but there is no action. In essence, I can't see any error, it just doesn't works. The following code:

this.options = {
  method: 'apprequests',
  message: 'Play YellowSidd with me!'
};
this.onSuccess = function(result) {
  alert("Success with invite, result: " + result);
};
this.onError = function(msg) {
  alert("Failed with invite, msg: " + msg);
};
    
facebookConnectPlugin.showDialog(this.options, this.onSuccess, this.onError);

In the Xcode in Build Phases -> Compile Sources I do have FacebookConnectPlugin.m. In Build Phases -> Link Binary with Libraries I do have also the following: libsqlite3.dylib (added by me), Security.framework (added by me), Accounts.framework (added by me), Social.framework (added by me). Also, the FBSDKCoreKit.framework, FBSDKLoginKit.framework and FBSDKShareKit.framework. These last 3 were already in that project.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.