sahu-fca
v10.0.0
Published
Optimized Facebook Chat API with enhanced security and stability
Maintainers
Readme
🚀 SAHU-FCA: Unofficial Facebook Chat API
A lightweight, fast, and unofficial API to interact with Facebook Chat programmatically — perfect for bots, automation, and custom messaging tools.
📦 Installation
npm install sahu-fca⚡ Quick Start
🔐 Login Example
const login = require('sahu-fca');
async function login() {
try {
const api = await login({
email: 'your_facebook_email',
password: 'your_password'
});
console.log('✅ Logged in successfully!');
return api;
} catch (error) {
console.error('❌ Login failed:', error);
}
}
login();💬 Send Message Example
const api = await login();
api.sendMessage("Hello from sahu-fca!", "friend_user_id");
👂 Listen for Messages
api.listen((err, message) => {
if (err) return console.error(err);
console.log('📩 Received message:', message.body);
});🧰 API Methods
| Method | Description |
|----------------------|--------------------------------------|
| login() | Authenticate with Facebook |
| sendMessage() | Send text message |
| listen() | Receive incoming messages |
| getUserInfo() | Fetch user profile data |
| handleRequest() | Accept/reject friend requests |
⚠️ Disclaime
Note: This is an unofficial Facebook API. Use at your own risk. This project is not affiliated with or endorsed by Meta / Facebook in any way.
🌐 GitHub & Repository
MIRAI PROJECT: Click Here
FCA: Click Here
ISLAMIC CHAT BOT: Click Here
