
your key to manipulate your information on facebook in easy way
created by LeiamNash
installation:
npm i fbkey
calling:
const fb = require("fbkey");
error handling:
error documentation can be found on
ErrorDocs
usages:
• comment
post a comment using your account
• createPage
create a facebook page using your account
• download
download facebook video including reels
• follow
auto follow using your facebook pages
• getKey
get your EAAG, EAAAAU, EAAD6V7 and EAAAAAY
• getPage
get your EAAD6V7 page
• post
create a public post using your account
• getAppstate
get your appstate by logging in your email and password
• share
auto share your facebook post
• stalk
get the information of a facebook user
• getToken
get your EAAG token using appstate
• gpt
your promotable ai
before we processed make sure that you have a facebook page existing in your account
const fb = require("fbkey");
const access = await getPage("");
for (var page of access) {
const facebook = await fb.comment({
text: "",
length: 1,
url "",
page
})
console.log(facebook);
}
if you don't have a facebook token then
const fb = require("fbkey");
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
const access = await fb.getPage(token.EAAD6V7);
for (var page of access) {
const facebook = await fb.comment({
text: "",
length: 1,
url "",
page
})
console.log(facebook);
}
createPage
this is just an experimental feature and still have so many bugs on it
const fb = require("fbkey");
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");
const email = "615594487example";
const password = "example";
const appstate = await getAppstate(email, password);
const facebook = await createPage(appstate);
console.log(facebook);
download
get facebook thumbnail, title, sd and hd URL
const fb = require("fbkey");
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");
const access = await getPage("");
for (var page of access) {
const facebook = await fb.follow({
uid: "",
page
})
console.log(facebook);
}
if you don't have a facebook token then
const fb = require("fbkey");
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
const access = await fb.getPage(token.EAAD6V7);
for (var page of access) {
const facebook = await fb.follow({
uid: "",
page
})
console.log(facebook);
}
getKey
it will get all of your facebook tokens
const fb = require("fbkey");
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");
const facebook = await getPage("");
console.log(facebook);
if you don't have a facebook token then
const fb = require("fbkey");
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
const facebook = await fb.getPage(token.EAAD6V7);
console.log(facebook);
post
gain access to your account by posting a text
const fb = require("fbkey");
const facebook = await post({
text: "",
token: ""
});
console.log(facebook);
if you don't have a facebook token then
const fb = require("fbkey");
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
const facebook = await post({
text: "",
token: token.EAAD6V7
});
console.log(facebook);
getAppstate
it can be used for your messager bot
const fb = require("fbkey");
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,
url: "",
token: ""
});
if you don't have a facebook token then
const fb = require("fbkey");
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
await fb.share({
length: 1,
url: "",
token: token.EAAD6V7
});
stalk
const fb = require("fbkey");
const uid = "";
const token = "";
const facebook = await fb.stalk(uid, token);
console.log(facebook);
if you don't have a facebook token then
const fb = require("fbkey");
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);
const uid = "";
const facebook = await fb.stalk(uid, token.EAAD6V7);
console.log(facebook);
getToken
appstate method for messenger bot
const fb = require("fbkey");
const appstate = require("./appstate.json");
const facebook = await fb.getToken(appstate);
console.log(facebook);
gpt
unlimitedly and detailed result
const fb = require("fbkey");
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
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
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
LeiamNash