Skip to content Skip to sidebar Skip to footer

Phonegap Facebook Plugin: Various Issues With Android

I'm trying to integrate Phonegap 3.1 with phonegap-facebook-plugin, to make my application able to login with facebook: https://github.com/phonegap/phonegap-facebook-plugin After v

Solution 1:

If someone is interested, I finally resolved leaving the facebook connect plugin and using facegap

It's incredibly simple to integrate.

EDIT:

example:

$(document).FaceGap({
    app_id      : 'xxxxxxxxxxxxxxxx',
    scope       : 'user_photos',
    host        : 'https://yourdomain.com', //App Domain ( Facebook Developer ).
    onLogin     : function (event)
    {
        if (event.message == "Success")
        {
            alert("LOGIN WORKED!");
        }
   },
    onLogout    : function (event) {
        if (event.status === 1)
        {
            alert("LOGOUT!");
        }
    }
});

Important: the host parameter must be a valid URL in your app domain (the one you set in the facebook app configuration). It could be also a blank page, it will be never be loaded, but needs to be a working url, in order to make facegap work.

I also created a fork with a bug fix and a new function (feed functionality):

Post a Comment for "Phonegap Facebook Plugin: Various Issues With Android"