Assumes you have node.js and npm.
Create a file ~/.facebook-auth
containing your login email and password in the format [email protected]:my-password
.
E.g.
echo "[email protected]:my-password" > ~/.facebook-auth
Install dependencies:
npm install
./send.js "Mark Zuckerberg" "Hello there"
Make a workflow (left as an exercise to the reader) e.g. "im my message" to send "my message" to your favourite person.
In the "Run Script" action of that workflow, have it do something like:
/usr/local/bin/node /Users/henrik/Dropbox/send_on_messenger/send.js "Mark Zuckerberg" "{query}" > /tmp/fb.log 2> /tmp/fb.error.log