0

I get a TypeError in my try catch block on trying to do this with cordova and facebook connect plugin.

try {
      alert('Device is ready! Make sure you set your app_id below this alert.');
     FB.init({ appId: "XXXXXXXXXXXX", nativeInterface: CDV.FB, useCachedDialogs: false });
     }
      catch (e) {
              alert(e);
        } 

On removing the "nativeInterface: CDV.FB", I get this error: missing exec:InAppBrowser.open

Why am I getting this error, or is there a walkaround for testing Phonegap app in Ripple Emulator? What I need to do is test the Facebook Connect plugin in Ripple before building in Phonegap Build.

On testing on the device I get a error: "TypeError does not have the method 'exec'" too and on trying to use the login I get : "Cordova Facebook Connect plugin fail on login!Mut call init bfore login

4

0 回答 0