<commit_before>---
layout: api
title: Facebook
---

There is currently only one endpoint available for Facebook.

## <a name="login"></a>Login

A _public key_ is required.

### Definition

````nginx
POST {{ site.parku.api }}/facebook/login
````

### Arguments

* __access\_token__ _required_<br/>
  The access token which is used to obtain information from Facebook. The token must have the permissions to get the users email.
### Example Request

```sh
$ curl {{ site.parku.api }}/facebook/login \
    -u 6f1ed002ab5595859014ebf0951522d9:parku \<commit_msg>Fix line break.<commit_after>---
layout: api
title: Facebook
---

There is currently only one endpoint available for Facebook.

## <a name="login"></a>Login

A _public key_ is required.

### Definition

````nginx
POST {{ site.parku.api }}/facebook/login
````

### Arguments

* __access\_token__ _required_<br/>
  The access token which is used to obtain information from Facebook. The token must have the permissions to get the users email.

### Example Request

```sh
$ curl {{ site.parku.api }}/facebook/login \
    -u 6f1ed002ab5595859014ebf0951522d9:parku \
{'fraction_non_alphanumeric': 0.12779267202859695, 'fraction_numerical': 0.041108132260947276, 'mean_word_length': 4.067873303167421, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '864343', 'n_tokens_mistral': 380, 'n_tokens_neox': 346, 'n_words': 120}