Using an "application only" token: https://dev.twitter.com/oauth/application-only
- Log in to @twitter_account twitter account
- Goto https://apps.twitter.com/
- Create a new app
- Get the consumer key and consumer secret
- Generate a bearer token with CURL:
curl -u "CONSUMER_KEY:CONSUMER_SECRET" --data 'grant_type=client_credentials' 'https://api.twitter.com/oauth2/token'
Request bearer token
URL: https://api.twitter.com/oauth2/token
Method: POST
Header: Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Header: Authorization: Basic base64("CONSUMER_KEY:CONSUMER_SECRET")
Body: grant_type=client_credentials
- Log into facebook
- Create a new app
- Retrieve app key and secret
- Generate a bearer token
URL: https://graph.facebook.com/oauth/access_token?client_id={app-id}&client_secret={app-secret}&grant_type=client_credentials
Method: GET