How to send facebook message from linux console (command-line) -


old days many admins use sms-gates sending important informations systems e.g. "power down, ups working now!", "power up, ups off!" or "cpu temp high!". today in facebook era use messenger instead of sms, wonder if create command-line bash or php script such thing.

the idea - cron checks every 10 minutes condition , if true, sends message messenger.

the issues:

  1. i don't want use fb account sending - i'd message "system 1", "system 2", because have more 1 system admin.
  2. the bash part easy me, need tips facebook solutions:
    • do have facebookappid (and have create appid each system or 1 appid)
    • how "join/confirm/accept" "system 1" account facebook account
    • is possible send messages more 1 fbaccount
    • any other hints should for.

i found notification app, think doesn't send message messenger, useless.

the chat api removed v2.0 of graph api, there no way send messages api anymore. btw, messages communcation between real users, should not used notification system anyway. sms still option kind of warnings imho.

using page , /conversations endpoint not work either:

pages can reply message - cannot initiate conversation. also, page can respond twice particular message, other party have respond before can reply again.

source: https://developers.facebook.com/docs/graph-api/reference/v2.3/conversation/messages#publish


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -