Notifications !
Note! This Is a facebook-chat-api Product by John Lester (The Author Is Not Responsible!), If There Is Any Error Please Try Using Another Product!
Support For :
- Support English, Vietnamese !,
- All bot if using listenMqtt first.
Api For ChatBot Messenger
Facebook Already Has And For Users To Create Api For Chatbots => Here.
Download
If You Want To Use It, Download It By:
npm i fca-johnlester
or
npm install fca-johnlester
It Will Load Into node_modules (Your Lib) - Note Replit Won't Show Where to Find
Download Latest Version Or Update
If You Want To Use The Latest Version Or Update Then Go To Terminal Or Command Prompt Enter :
npm install fca-johnlester@latest
Or
npm i fca-johnlester@latest
If You Want To Test Api
Benefits For This You Will Not Spend Time Paying Acc And Have Acc
Please Use With Demo Account => Facebook Whitehat Accounts.
Using
const login = require("fca-johnlester");
login({email: "Gmail Account", password: "Your Facebook Password"}, (err, api) => {
if(err) return console.error(err);
api.listenMqtt((err, message) => {
api.sendMessage(message.body, message.threadID);
});
});
As a result, it will copy you as shown below:
If You Want Advanced Use Then Use The Bots Listed Above!
Documentation
You Can Read Full Api At => here.
Install For Mirai:
You Need To Go To Mirai.js File, Then Find The Line
var login = require('depending on bot');
And Replace It With:
var login = require('fca-johnlester')
Then Run As Normal!
Save Login Information.
To Save You Need 1 Appstate Type (Cookie, etc,..) To Save Or Use Login Code As Above To Login !
And This Mode Is Available In Some Vietnamese Bots So You Can Rest assured!
Instructions With Appstate
const fs = require("fs");
const login = require("fca-johnlester");
var credentials = {email: "FB_EMAIL", password: "FB_PASSWORD"};
login(credentials, (err, api) => {
if(err) return console.error(err);
fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState(), null,'\t'));
});
Or Easier (Professional) You Can Use => c3c-fbstate To Get Fbstate And Rename To Appstate Also ! (appstate.json)