{"repo":"mahmudx7/mahmud-fca","free":true,"listed":false,"github":"https://github.com/mahmudx7/mahmud-fca","clone":"git clone https://github.com/mahmudx7/mahmud-fca.git","description":"mahmud-fca is a Facebook Chat API modified with bug fixes, stability improvements, and extra features for Facebook Messenger bots.","language":"JavaScript","stars":17,"topics":["chat","chat-api","chatbot","facebook","facebook-api","facebook-bot","facebook-chat","facebook-chat-api","facebook-messenger","fb-chat-api"],"license":"MIT","category":"chat-messaging","readme_excerpt":"mahmud-fca A modified & improved Facebook Chat API — Fixed and maintained by @mahmudx7 --- 👤 About mahmud-fca is a Facebook Chat API modified with bug fixes, stability improvements, and extra features for Facebook Messenger bots. --- 📦 Install Or install directly from GitHub: --- 🚀 Example Usage --- ✨ Features & Changes - ✅ Auto relogin — Automatically relogins when an error is detected - ✅ Auto dismiss behavior — Detects and dismisses Facebook's automated behavior checkpoint - ✅ Added api.relogin() — Manually trigger relogin - ✅ Added api.stopListenMqtt() — Stop listening to MQTT - ✅ Added api.getRegion() — Get the server region - ✅ Fixed api.follow() and other API functions - ✅ Replaced npmlog with normal console.log to fix render log issues - ✅ Supports cookie string, cookie array, and JSON appstate --- 📖 API Reference api.sendMessage(message, threadID[, callback][, messageID]) Send a message to a thread. Message types: Type Field ------ ------- Text body Sticker sticker File/Image attachment (readable stream) URL url Emoji emoji + emojiSize --- api.listenMqtt(callback) Listen for messages and events. Enable events with: Enable self-listen: --- api.getAppState() Returns the current appstate (cookies). Save it to avoid logging in every time: --- api.stopListenMqtt() Stops listening to MQTT. --- api.relogin() Manually triggers a relogin. --- api.getRegion() Returns the current Facebook server region (e.g. PRN , LLA ). --- ⚙️ Options Pass options as the second argument to","default_branch":null,"files":null,"tree":[],"storefront":"/r/mahmudx7","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mahmudx7/mahmud-fca/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}