diff --git a/README.md b/README.md index a994978..3afcfeb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # OpenFB # +Modified OpenFB is a fork of 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. @@ -29,6 +31,12 @@ Post on the user's feed: error: errorHandler }); +Get the user ID: + + openFB.api({path: '/me?fields:id', success: successHandler, error: errorHandler}); + + + The approach used in OpenFB (plain OAuth + direct requests to Graph API endpoints) is simple and lightweight, but it is definitely not perfect. Pros: diff --git a/contributors b/contributors new file mode 100644 index 0000000..60afb2d --- /dev/null +++ b/contributors @@ -0,0 +1 @@ +- Fernando Junior (@fernandojunior) \ No newline at end of file diff --git a/index.html b/index.html index 4d6f0e2..402a825 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,9 @@

Name:

+

ID:

+
@@ -26,11 +28,15 @@