<commit_before># oauth2_facebook_grantable

Adds a grant_type "facebook" to the existing installation of
[devise_oauth2_providable](https://github.com/socialcast/devise_oauth2_providable)

## Features

* Allows to provide facebook_id and facebook_access_token to authenticate
  against an OAuth2 API made with [devise_oauth2_providable](https://github.com/socialcast/devise_oauth2_providable)


## Requirements

* [Devise](https://github.com/plataformatec/devise) authentication library
* [Rails](http://rubyonrails.org/) 3.1 or higher
* [Devise OAuth2 Providable](https://github.com/socialcast/devise_oauth2_providable)

## Installation

#### Install gem
```ruby
# Gemfile
gem 'oauth2_providable_facebook'
```

#### Migrate database

It essentially adds a facebook_identifier column to the User model. It's
required so the plugin can find a user based on its facebook_id

```
$ rails g oauth2_providable_facebook:install
$ rake db:migrate
```


#### Configure User model to support Facebook authentication<commit_msg>Updated install documentation to reflect updated gem name<commit_after># oauth2_facebook_grantable

Adds a grant_type "facebook" to the existing installation of
[devise_oauth2_providable](https://github.com/socialcast/devise_oauth2_providable)

## Features

* Allows to provide facebook_id and facebook_access_token to authenticate
  against an OAuth2 API made with [devise_oauth2_providable](https://github.com/socialcast/devise_oauth2_providable)


## Requirements

* [Devise](https://github.com/plataformatec/devise) authentication library
* [Rails](http://rubyonrails.org/) 3.1 or higher
* [Devise OAuth2 Providable](https://github.com/socialcast/devise_oauth2_providable)

## Installation

#### Install gem
```ruby
# Gemfile
gem 'oauth2_facebook_grantable'
```

#### Migrate database

It essentially adds a facebook_identifier column to the User model. It's
required so the plugin can find a user based on its facebook_id

```
$ rails g oauth2_facebook_grantable:install
$ rake db:migrate
```


#### Configure User model to support Facebook authentication
{'fraction_non_alphanumeric': 0.09528392685274302, 'fraction_numerical': 0.011549566891241578, 'mean_word_length': 6.269230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1579898', 'n_tokens_mistral': 688, 'n_tokens_neox': 633, 'n_words': 172}