Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ FAIRPOST_REQUEST_PORT=8000
# FAIRPOST_LINKEDIN_CLIENT_ID=xxx
# FAIRPOST_LINKEDIN_CLIENT_SECRET=xxx
# FAIRPOST_LINKEDIN_COMPANY_ID=xxx
# linkedin_auth
# FAIRPOST_LINKEDIN_ACCESS_TOKEN=xxx
# FAIRPOST_LINKEDIN_REFRESH_TOKEN=xxx

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ fairpost.js get-platform --platform=xxx
fairpost.js get-platforms [--platforms=xxx,xxx]
fairpost.js get-folder --folder=xxx
fairpost.js get-folders [--folders=xxx,xxx]
fairpost.js get-post --folder=xxx --platform=xxx
fairpost.js get-post --post=xxx:xxx
fairpost.js get-posts [--status=xxx] [--folders=xxx,xxx] [--platforms=xxx,xxx]
fairpost.js prepare-post --folder=xxx --platform=xxx
fairpost.js schedule-post --folder=xxx --platform=xxx --date=xxxx-xx-xx
fairpost.js prepare-post --post=xxx:xxx
fairpost.js schedule-post --post=xxx:xxx --date=xxxx-xx-xx
fairpost.js schedule-posts [--folders=xxx,xxx] [--platforms=xxx,xxx] --date=xxxx-xx-xx
fairpost.js publish-post --folder=xxx --platform=xxx [--dry-run]
fairpost.js publish-post --post=xxx:xxx [--dry-run]
fairpost.js publish-posts [--folders=xxx,xxx] [--platforms=xxx,xxx]

# feed planning:
Expand Down
18 changes: 13 additions & 5 deletions docs/Facebook.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Platform: Facebook

The `facebook` platform manage a facebook **page* (not your feed)
The `facebook` platform manages a facebook **page** (not your feed)
using the plain graph api - no extensions installed.

## Setting up the Facebook platform
Expand All @@ -13,11 +13,11 @@ using the plain graph api - no extensions installed.
- save this as `FAIRPOST_FACEBOOK_APP_ID` in your .env
- under 'settings', find your app secret
- save this as `FAIRPOST_FACEBOOK_APP_SECRET` in your .env
- before you use the app, set the App Mode to 'Live'
- use https://github.com/commonpike/fairpost/blob/master/public/privacy-policy.md for the privacy policy url
- keep the app under development, otherwise the localhost return url wont work

### Find the page id of the page you want the app to manage
- go to https://business.facebook.com/
- find your page (currently under 'settings > business assets')
- find your page (currently under 'settings > accounts > pages')
- save the page id as `FAIRPOST_FACEBOOK_PAGE_ID` in your .env

### Enable the platform
Expand All @@ -26,7 +26,7 @@ using the plain graph api - no extensions installed.
### Get a (long lived) Page Access Token for the page you want the app to manage

This token should last forever. It involves getting a user access token,
exchaning it for a long-lived user token and
exchanging it for a long-lived user token and
then requesting the 'accounts' for your 'app scoped user id';
but this app provides a tool to help you do that:

Expand All @@ -36,6 +36,14 @@ but this app provides a tool to help you do that:
### Test the platform
- call `./fairpost.js test-platform --platform=facebook`

### Make the app live
- before you use the app, set the App Mode to 'Live'
- use https://github.com/commonpike/fairpost/blob/master/public/privacy-policy.md for the privacy policy url

### Other settings

`FAIRPOST_FACEBOOK_PUBLISH_POSTS` - if false, posts will be posted but not be published

# Limitations

## Images
Expand Down
Loading