INTRODUCTION
This easy step by step tutorial is only for Beginners and for those who are fighting with errors for Facebook Integration. So this could be a start. Once you test it out successfully, you can play with it and also try using Facebook features in your games.
Outcomes of this tutorial is with the sample capx which is provided in the below link, you can test it in your real mobile device, you can LOG IN, LOG OUT, SHARE, POST and many more features. So, once again this could be a real good start for beginners. All the best and let's get it started.
Plugin: Phonegap Facebook. DOWNLOAD HERE
ZIP FILE CONTAINS plugin files, sample capx and readme.
FACEBOOK APP
First, we have to create a test app in Facebook. There are few detailed tutorials out there in this forum where you can learn more about this Facebook developer settings and all. But for now we don't need much. So, go to Facebook Developer Log-in Page
First you log in with your Facebook account. Then click on APPS --> Add a New App
In the select the platform section --> Select Android.
In the Quick start for Android section select --> SKIP and CREATE APP ID
Now, in the Create a New App ID section, Give any "display name", Select "Category", "Sub-Category" and Click Create App ID.
Then, Under Setting Tab --> Basic --> Click on +Add Platform
From the given list of "Select Platform" select ANDROID
For temporary just paste this below quoted text in the Key Hashes without the Quotes "AAAAAAAAAAAAAAAAAAAAAAAAAAA="
Just click on "Save Changes" and then go to Status and Review Tab. Now Enable the live feature availabel to general public as shown in the below image.
NOTE: If you don't enable the Live feature available to the general public option in the Status and Review Tab, you cannot able to log-in with any other Facebook account other than the one which you use now to create this test app. So make it Live and Public.
Okay. For now, we are done with the Facebook, so let's move on to the next part "Example Capx"