<commit_before># Cordova Facebook Account Kit Plugin

This plugin integrates the Facebook's Account Kit. For more info see [Account Kit](https://www.accountkit.com/)

This is a WIP. Not recommended for production usage.

## Supported platforms

1. Android

## Plugin Installation

1. Clone this project
2.c Add the plugin to your cordova project with the following command

```
cordova plugin add <PATH_TO>/cordova-plugin-fb-accountkit --variable FB_APP_NAME=<APP_NAME> --variable FB_APP_ID=<APP_ID> --variable FB_CLIENT_TOKEN=<CLIENT_TOKEN>
```

## API

#### loginWithPhone
```
fbAccountKit.loginWithPhone(success, failure, {"type" : "CODE"}); // currently only 'CODE' is supported
```

Response:
```
{
    status : "SUCCESS",
    authorizationCode : "<auth-code-string>",
    finalAuthorizationState : "",
    tokenRefreshIntervalInSeconds : 120<commit_msg>typo fix and formatting in README<commit_after># Cordova Facebook Account Kit Plugin

This plugin integrates the Facebook's Account Kit. For more info see [Account Kit](https://www.accountkit.com/)

This is a WIP. Not recommended for production usage.

## Supported platforms

* Android

## Plugin Installation

* Clone this project
* Add the plugin to your cordova project with the following command

```
cordova plugin add <PATH_TO>/cordova-plugin-fb-accountkit --variable FB_APP_NAME=<APP_NAME> --variable FB_APP_ID=<APP_ID> --variable FB_CLIENT_TOKEN=<CLIENT_TOKEN>
```

## API

#### loginWithPhone
```
fbAccountKit.loginWithPhone(success, failure, {"type" : "CODE"}); // currently only 'CODE' is supported
```

Response:
```
{
    status : "SUCCESS",
    authorizationCode : "<auth-code-string>",
    finalAuthorizationState : "",
    tokenRefreshIntervalInSeconds : 120
{'fraction_non_alphanumeric': 0.11880046136101499, 'fraction_numerical': 0.005190311418685121, 'mean_word_length': 4.841750841750842, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2903400', 'n_tokens_mistral': 531, 'n_tokens_neox': 507, 'n_words': 159}