Facebook messenger api / how to send messages on messenger by using request?

wezaluketek

Newbie
Joined
Jan 12, 2024
Messages
37
Reaction score
12
Hello,

I'm trying to code tool that auto respond to chats on facebook (private accounts) I'm already found out in graphql response we can find recent threads id. I have some issues with getting how sending messages works here? I'm not 100% sure but probably by websocket. Anybody can provide more details? I found some tools on github, all of them are outdated because few years ago facebook make some crucial changes with messenger. I'm really trying to get how sending messages works here, but I never wrote any private-api tools. Any tips will be appreciate.
 
Creating a tool to automate responses on Facebook Messenger can be complex due to Facebook's continual updates and changes to their API
 
Agree, tought but doable. I'm already able to send message with their graphql. As I thought it required analyzing websocket requests that required decoding with base64decode
Now I'm trying to get pagination to fetch more data than first ~10 chats that appears without pagination. If anybody can share some information it will be helpful.
 
FB's API is not open like telegram. I think you won't be able to do it if they don't allow it. You know that tool is a piece of cake for them to make money with the service of providing their ads on pages
 
FB's API is not open like telegram. I think you won't be able to do it if they don't allow it. You know that tool is a piece of cake for them to make money with the service of providing their ads on pages
It would be strange if they would share that kind of information. Facebook needs to 'protect community' and that's why they fighting against automation tools. But if you can just scroll the page and get new results or send a message or anything else you can do it automatically as well. It's matter of how tough it will be. My problem is I don't have enough knowledge in reverse engineering to do so. I was able to send a message through python request, but now I can't get paginated chats. Generally sending message is sending some data including the message you want to send, now I want to receive data = receive paginated chats id.
 
Creating a tool to automate responses on Facebook Messenger can be complex due to Facebook's continual updates and changes to their API
Yes but if somebody has good reverse engineering knowledge and some websockets knowledge it's doable easily. My knowledge in both case is unfortnunately not enough but I guess I'll have to learn more. I found blog post that is 3 or 4 years old I don't remember but it has explained how to send message and it's still working.
 
FB's API is not open like telegram. I think you won't be able to do it if they don't allow it. You know that tool is a piece of cake for them to make money with the service of providing their ads on pages
 
Yes but if somebody has good reverse engineering knowledge and some websockets knowledge it's doable easily. My knowledge in both case is unfortnunately not enough but I guess I'll have to learn more. I found blog post that is 3 or 4 years old I don't remember but it has explained how to send message and it's still working.
Have you finished your software?
 
Creating a tool to automate responses on Facebook Messenger can be complex due to Facebook's continual updates and changes to their API
with regex its possible to make a viable algorithm to monitor the right target even if its dynamic.
Unless they go full psycho and starts sending their data through paths thats called after a random string generation:D
 
Read the Facebook Graph API and Messenger Platform documentation to understand their features and limitations, test and debug, Test and debug your tool carefully to make sure it works as expected.
 
Read the Facebook Graph API and Messenger Platform documentation to understand their features and limitations, test and debug, Test and debug your tool carefully to make sure it works as expected.
Or Reverse it as much as you can and bank
 
Yes but if somebody has good reverse engineering knowledge and some websockets knowledge it's doable easily. My knowledge in both case is unfortnunately not enough but I guess I'll have to learn more. I found blog post that is 3 or 4 years old I don't remember but it has explained how to send message and it's still working.
I think there will still be a charge for that service. If you succeed in improving it, please let us know.
 
Hello,

I'm trying to code tool that auto respond to chats on facebook (private accounts) I'm already found out in graphql response we can find recent threads id. I have some issues with getting how sending messages works here? I'm not 100% sure but probably by websocket. Anybody can provide more details? I found some tools on github, all of them are outdated because few years ago facebook make some crucial changes with messenger. I'm really trying to get how sending messages works here, but I never wrote any private-api tools. Any tips will be appreciate.
Have you found a way yet?
 
The simplest way is to use tools to automate your browser such as selenium/puppeteer but for multiple accounts it comes with high resource usage (single webdriver and browser for just 1 account)


As you know api won't hurt your resources (even running hundreds at the same time)
Reverse their api is the best way for that, web api is tricky they use websocket combined with mqtt. Mobile api is 'easier' way it's regular http request here so you can replicate it with lower knowledge. But reverse engineering isn't easy thing to do if you never done that before. Before you will be even able to see the network traffic you gotta disable ssl pinning for the app that's the most tricky part so if you don't have high low-level skills the only way to get it working is pay somebody will do that, but ssl unpinning ain't easy thing at all so may get expensive. Searching github there's no working app for messenger only older versions that have ssl pinning disabled (facebook app won't work they dirrect the traffic through messenger so all you will be able to see in mitm app is handshake error)
 
with regex its possible to make a viable algorithm to monitor the right target even if its dynamic.
Unless they go full psycho and starts sending their data through paths thats called after a random string generation:D
Why you are not replying to my friend messages ? You got the money and now not answering
 
Facebook is constantly updating their systems, so what works today may not work tomorrow. Attempting to reverse engineer Facebook's private APIs may violate their terms of service and result in your account being suspended or terminated.
 
The simplest way is to use tools to automate your browser such as selenium/puppeteer but for multiple accounts it comes with high resource usage (single webdriver and browser for just 1 account)


As you know api won't hurt your resources (even running hundreds at the same time)
Reverse their api is the best way for that, web api is tricky they use websocket combined with mqtt. Mobile api is 'easier' way it's regular http request here so you can replicate it with lower knowledge. But reverse engineering isn't easy thing to do if you never done that before. Before you will be even able to see the network traffic you gotta disable ssl pinning for the app that's the most tricky part so if you don't have high low-level skills the only way to get it working is pay somebody will do that, but ssl unpinning ain't easy thing at all so may get expensive. Searching github there's no working app for messenger only older versions that have ssl pinning disabled (facebook app won't work they dirrect the traffic through messenger so all you will be able to see in mitm app is handshake error)
as you said we need to hire someone to do this job hire top software engineers so they can design us an application framework that works on all platforms
 
Using the official API to automate personal account messages is not feasible. Using unofficial APIs is risky, your account may be locked, or your interactions may be restricted by Facebook.
 
Back
Top