Read all comments of given post's permalink.
- Node >= 7
- Facebook user credentials
You can either pass your facebook credentials as environment variable:
FB_EMAIL
for storing emailFB_PASSWORD
for storing passwordFB_2FA
for storing 2FA if you use it. (optional)
--fbPostUrl (required) This takes precedence over the env variable FB_POST_URL, it is Facebook post's permalink.
--fbEmail This takes precedence over the env variable FB_EMAIL
--fbPassword This takes precedence over the env variable FB_PASSWORD
--fb2fa This takes precedence over the env variable FB_2FA (optional)
> yarn install
> $env:FB_EMAIL = "[email protected]"
> $env:FB_PASSWORD = "1234567890"
> $env:FB_POST_URL = "https://www.facebook.com/groups/ThaiPGAssociateSociety/permalink/xxxxx/"
> $env:FB_2FA = "123456" # optional
> yarn start
All comment HTML are in comments.text that you can process latest, it will be remove if you run the command again.