[Drupal] How to configure Facebook Oauth module in drupal 7
Facebook OAuth module helps to extract data from user's Facebook account details and map that user's Drupal account during registration. The user details will be extracted directly from the Facebook account details and user can define the custom field types to be extracted with validations. Validations means the mandatory field info's that should be present in the Facebook account details before extract using the FBoauth API.
The following are the steps to configure fboauth module:
- Install the FBOauth module (https://drupal.org/project/fboauth).
- Create a new app on facebook at, https://www.facebook.com/developers/apps.php.
- Use website name to create App. You will get the App ID and App Secret from Apps page for configuring Facebook OAuth settings in Drupal(Admin >> Config >> Facebook OAuth settings).
- In case if you want to set some fields mandatory, then use module (https://drupal.org/project/pfff).
For Testing purpose, after getting the App-ID just copy paste the below code in the page head tag.
Also, You can also add custom code to the body tags in the page where you want to show the facebook link.