
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
messenger-cli
Advanced tools
Send messages from a Facebook Messenger bot account CLI
npm install messenger-cli -g
Finding your user ID
Every user ID is different per Messenger app, this means that you need to find yours before you can start sending messages. I've created a simple webhook script that you can deploy to Heroku to find your ID.
Setting the access token
messenger -t <token>
It is required that you set your access token and default user ID to send a message.
Setting the default recipient
messenger -r <user id>
Typing out and remembering the user ID is annoying, you can set a default user ID by using the -r flag by itself.
Sending a message
messenger -r <user id> -m <message>
Sending a message to the default recipient
messenger -m <message>
Sending a message without the -r flag will be sent to the default user.
Command line
$ dd if=image.img of=/dev/rdisk1; messenger -m "Disk write complete"
$ wget ubuntu.com/image.img; messenger -m "Ubuntu finished downloaded"
$ make; make install; messenger -m "Software compiled and installed"
In software
Because it's CLI, it can be used in all projects.
# Python script checking a server's status
while True:
if server_up() == False:
os.system('messenger -m "The server has gone down"')
time.sleep(900)
If you've found a great use case yourself, tweet me at @hstntn, I'm super interested.
FAQs
Send messages from a Facebook Messenger bot account CLI
We found that messenger-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.