OpenFB OpenFB is a micro-library that lets you integrate your JavaScript applications with Facebook. It works for both browser-based and Cordova/PhoneGap apps. OpenFB has no dependency: You don't need the Facebook plugin when running in Cordova. You also don't need the Facebook SDK. OpenFB allows you to login to Facebook and execute any Facebook Graph API request. Here are a few code examples...
OpenFB
OpenFB is a micro-library that lets you integrate your JavaScript applications with Facebook. It works for both browser-based and Cordova/PhoneGap apps.
OpenFB has no dependency: You don't need the Facebook plugin when running in Cordova. You also don't need the Facebook SDK.
OpenFB allows you to login to Facebook and execute any Facebook Graph API request.
Here are a few code examples...
Login using Facebook:
openFB.login(callback, {scope: 'email'});
Get the user's list of friends:
openFB.api({path: '/me/friends', success: successHandler, error: errorHandler});
Post on the user's feed:
openFB.api(
{
method: 'POST',
path: '/me/feed',
params: {
message: 'Testing the Facebook Graph API'
},
success: successHandler,
error: errorHandler
});
Source: GitHub (OpenFB)