A Facebook chat API
npm install ryuu-fca-api---
Ryuu-FCA-API is a powerful fork of the Facebook Chat API with significant improvements and new features.
---
---
``bash`
npm install ryuu-fca-api
---
javascript
login({
email: "your_email",
password: "your_password"
}, (err, api) => {
if(err) return console.error(err);
// Bot code here
});
`$3
`javascript
login({
appState: JSON.parse(fs.readFileSync('appstate.json', 'utf8'))
}, (err, api) => {
if(err) return console.error(err);
// Bot code here
});
`---
Basic Usage
`javascript
const login = require("ryuu-fca-api");login({
email: "YOUR_EMAIL",
password: "YOUR_PASSWORD"
}, (err, api) => {
if(err) return console.error(err);
api.setOptions({
forceLogin: true,
listenEvents: true,
logLevel: "silent",
updatePresence: false,
selfListen: false
});
api.listenMqtt((err, event) => {
if(err) return console.error(err);
switch(event.type) {
case "message":
api.sendMessage("Hello!", event.threadID);
break;
}
});
});
`---
Advanced Options
`javascript
api.setOptions({
forceLogin: true,
listenEvents: true,
logLevel: "silent",
updatePresence: false,
selfListen: false,
userAgent: "user agent here", //optional
autoMarkRead: false,
autoMarkDelivery: true
});
``---
---
- Jr Busaco - Owner
- Original FCA Authors - Base Framework
- Ryuu Team - Enhanced Features & Fixes
---
Join our community:
- Facebook Support Group
Contact info:
- Jr Busaco
---
- Login via credentials has been restored and is working
- Random User-Agent helps avoid detection
- Region fix improves connection stability
- Use responsibly to avoid restrictions
---
This project is licensed under the MIT License.
---
Note: While we've restored many features, please use this API responsibly and in accordance with Facebook's terms of service.
---