fbkey
v1.0.9
Published
your key to access on facebook
Downloads
77
Maintainers
Readme
installation:
npm i fbkey
calling:
const fb = require("fbkey");
error handling:
error documentation can be found on ErrorDocs
usages: • commentpost a comment using your account
• createPagecreate a facebook page using your account
• downloaddownload facebook video including reels
• followauto follow using your facebook pages
• getKeyget your EAAG, EAAAAU, EAAD6V7 and EAAAAAY
• getPageget your EAAD6V7 page
• postcreate a public post using your account
• getAppstateget your appstate by logging in your email and password
• shareauto share your facebook post
• stalkget the information of a facebook user
• getTokenget your EAAG token using appstate
• gptyour promotable ai
comment
before we processed make sure that you have a facebook page existing in your account
const fb = require("fbkey");
// paste your EAAD6V7 token here
const access = await getPage("");
// we're getting your facebook pages
for (var page of access) {
const facebook = await fb.comment({
text: "", // your comment
length: 1, // number of comments
url "", // facebook post url
page
})
console.log(facebook);
}
if you don't have a facebook token then
const fb = require("fbkey");
// first we need to get your facebook token by logging in your account
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
// we're going to use the EAAD6V7
const access = await fb.getPage(token.EAAD6V7);
// we're getting your facebook pages
for (var page of access) {
const facebook = await fb.comment({
text: "", // your comment
length: 1, // number of comments
url "", // facebook post url
page
})
console.log(facebook);
}
createPage
this is just an experimental feature and still have so many bugs on it
const fb = require("fbkey");
// use your appstate
const facebook = await createPage(appstate);
console.log(facebook);
if you don't have an appstate then we will get it by logging in
const fb = require("fbkey");
// first we need to login to get your appstate
const email = "615594487example";
const password = "example";
const appstate = await getAppstate(email, password);
// we're going to use the appstate as login
const facebook = await createPage(appstate);
console.log(facebook);
download
get facebook thumbnail, title, sd and hd URL
const fb = require("fbkey");
// paste the facebook video/reels url
const facebook = await fb.download("");
console.log(facebook);
follow
before we processed make sure that you have a facebook page existing in your account
const fb = require("fbkey");
// paste your EAAD6V7 token here
const access = await getPage("");
// we're getting your facebook pages
for (var page of access) {
const facebook = await fb.follow({
uid: "", // paste your facebook uid here
page
})
console.log(facebook);
}
if you don't have a facebook token then
const fb = require("fbkey");
// first we need to get your facebook token by logging in your account
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
// we're going to use the EAAD6V7
const access = await fb.getPage(token.EAAD6V7);
// we're getting your facebook pages
for (var page of access) {
const facebook = await fb.follow({
uid: "", // paste your facebook uid here
page
})
console.log(facebook);
}
getKey
it will get all of your facebook tokens
const fb = require("fbkey");
// first we need to login your account
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
console.log(token)
getPage
make sure you have an existing facebook page to your account
const fb = require("fbkey");
// paste your EAAD6V7 token here
const facebook = await getPage("");
console.log(facebook);
if you don't have a facebook token then
const fb = require("fbkey");
// first we need to get your facebook token by logging in your account
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
// we're going to get your pages information
const facebook = await fb.getPage(token.EAAD6V7);
console.log(facebook);
post
gain access to your account by posting a text
const fb = require("fbkey");
// we will only use your token
const facebook = await post({
text: "", // your post
token: "" // paste your EAAD6V7 token
});
console.log(facebook);
if you don't have a facebook token then
const fb = require("fbkey");
// first we need to get your facebook token by logging in your account
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
// we will make a post now
const facebook = await post({
text: "", // your post
token: token.EAAD6V7
});
console.log(facebook);
getAppstate
it can be used for your messager bot
const fb = require("fbkey");
// we're loggin your account
const email = "615594487example";
const password = "example";
const facebook = await getAppstate(email, password);
console.log(facebook);
share
spam share using your account
const fb = require("fbkey");
await fb.share({
length: 1, // how many shares you want
url: "", // link of your post
token: "" // paste your EAAD6V7 token
});
if you don't have a facebook token then
const fb = require("fbkey");
// first we need to get your facebook token by logging in your account
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
await fb.share({
length: 1, // how many shares you want
url: "", // link of your post
token: token.EAAD6V7
});
stalk
const fb = require("fbkey");
const uid = ""; // paste some facebook user iD
const token = ""; // paste your EAAD6V7 token
const facebook = await fb.stalk(uid, token);
console.log(facebook);
if you don't have a facebook token then
const fb = require("fbkey");
// first we need to get your facebook token by logging in your account
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
const uid = ""; // paste some facebook user iD
const facebook = await fb.stalk(uid, token.EAAD6V7);
console.log(facebook);
getToken
appstate method for messenger bot
const fb = require("fbkey");
// assuming that you have this
const appstate = require("./appstate.json");
const facebook = await fb.getToken(appstate);
console.log(facebook);
gpt
unlimitedly and detailed result
const fb = require("fbkey");
// prompt something
const facebook = await fb.gpt("");
console.log(facebook);
ErrorDocs
list of errors type
001
- explanation: this error occurs when it fails to get an response from facebook
- solution: please contact the developer, only the developer can fix this issue and update the package
002
- explanation: this error occurs when there's no available data for your account
- solution: check your facebook account, maybe it's locked or if there're two factor authentication please turn it off, if this doesn't work please try to check your internet client this one gonna solve your problem
003
- explanation: this error occurs when you have two factor authentication enabled in your account
- solution: just turn it off the two factor authentication, if this doesn't work please change your password and relogin it again
004
- explanation: this error occurs when you put the wrong access token interested of EAAD6V7
- solution: to fix this just paste your EAAD6V7 token
005
- explanation: this error occurs when you put the wrong reaction that only supported
- solution: to fix this issue you just only put one reaction from these types ( HAHA, SAD, WOW, LOVE, ANGRY )
006
- explanation: this error occurs when your account doesn't have any pages
- solution: to fix this issue you need to create a new page from your account, because this is a page method or else update your token
007
- explanation: this error occurs because facebook updates their url as a unique randomize string
- solution: to fix this issue you need to get the url on facebook lite or in free.facebook.com the support url should be like this https://m.facebook.com/story.php?id=100050635086635&story_fbid=982011393496688, https://www.facebook.com/100050635086635/posts/982011393496688/?substory_index=7544103572345201&app=fbl
008
- explanation: this error occurs when you use an invalid facebook user id
- solution: to fix you need to extract your actual uid, you can use an third party app like facebook bot to extract your uid