<commit_before>Discourse Facebook post
=======================

## Notes

A specially developed daemon to post discourse articles to the facebook group.


## Usage

- Install dependency

```console
$ npm insatll
```

- Start daemon
	- It has a pre-process to get the Facebook token.

```console
$ npm start
```

- Stop daemon

```console
$ npm stop
```


## Configuration

- You need the Facebook app.
	- [https://developers.facebook.com/apps/](https://developers.facebook.com/apps/)

- need to copy `.env_sample` to `.env` and change it.

```javascript
DISCOURSE_URL=https://jsdev.kr
FACEBOOK_APP_ID=
FACEBOOK_SECRET=
FACEBOOK_GROUP_ID=
POLLING_INTERVAL_SEC=60
POSTED_AFTER_MIN=5
```

- `DISCOURSE_URL` should not end with `/`.
- To find `FACEBOOK_GROUP_ID`, run `/me/groups` in the graph API explorer.
	- [https://developers.facebook.com/tools/explorer](https://developers.facebook.com/tools/explorer)


## To do

- Post to other facebook groups by category.
- Posting the same post to multiple groups.


## Caution

- Facebook can block or audit your account.


## License

MIT License<commit_msg>readme update<commit_after>discourse-facebook-auto-publish
===

## Notes

A specially developed daemon for publish discourse articles to the facebook group.


## Usage

- Install dependency

```console
$ npm insatll
```

- Start daemon
	- It has a pre-process to get the Facebook token.

```console
$ npm start
```

- Stop daemon

```console
$ npm stop
```


## Configuration

- You need the Facebook app.
	- [https://developers.facebook.com/apps/](https://developers.facebook.com/apps/)

- need to copy `.env_sample` to `.env` and change it.

```javascript
DISCOURSE_URL=https://jsdev.kr
FACEBOOK_APP_ID=
FACEBOOK_SECRET=
FACEBOOK_GROUP_ID=
POLLING_INTERVAL_SEC=60
POSTED_AFTER_MIN=5
```

- `DISCOURSE_URL` should not end with `/`.
- To find `FACEBOOK_GROUP_ID`, run `/me/groups` in the graph API explorer.
	- [https://developers.facebook.com/tools/explorer](https://developers.facebook.com/tools/explorer)


## To do

- Post to other facebook groups by category.
- Posting the same post to multiple groups.


## Caution

- Facebook can block or audit your account.


## License

MIT License
{'fraction_non_alphanumeric': 0.13093065693430658, 'fraction_numerical': 0.002737226277372263, 'mean_word_length': 4.018306636155606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2782552', 'n_tokens_mistral': 773, 'n_tokens_neox': 720, 'n_words': 212}