New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fbkey

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fbkey

your key to access on facebook

  • 1.0.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-83.33%
Maintainers
0
Weekly downloads
 
Created
Source

LeiamNash

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



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


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


Keywords

FAQs

Package last updated on 12 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc