npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fb-aoi-key

v0.1.0

Published

your key to access on facebook

Downloads

7

Readme

Installation:

npm i fb-aoi-key

Calling:

const fb = require("fb-aoi-key");

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 with 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 proceed, make sure that you have an existing Facebook page in your account.

const fb = require("fb-aoi-key");

// Paste your EAAD6V7 token here
const access = await fb.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("fb-aoi-key");

// First, we need to get your Facebook token by logging into 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 has many bugs in it.

const fb = require("fb-aoi-key");

// 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("fb-aoi-key");

// 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("fb-aoi-key");

// Paste the Facebook video/reels URL
const facebook = await fb.download("");
 console.log(facebook);

follow

Before we proceed, make sure that you have an existing Facebook page in your account.

const fb = require("fb-aoi-key");

// Paste your EAAD6V7 token here
const access = await fb.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("fb-aoi-key");

// First, we need to get your Facebook token by logging into 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("fb-aoi-key");

// First, we need to log in to 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 in your account.

const fb = require("fb-aoi-key");

// Paste your EAAD6V7 token here
const facebook = await fb.getPage(""); 
 console.log(facebook);

If you don't have a Facebook token, then

const fb = require("fb-aoi-key");

// First, we need to get your Facebook token by logging into your account 
const email = "615594487example";
const password = "example";
const token = await fb.getKey(email, password);

// We're going to get your page's information
const facebook = await fb.getPage(token.EAAD6V7);
 console.log(facebook);

post

Gain access to your account by posting a text.

const fb = require("fb-aoi-key");

// 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("fb-aoi-key");

// First, we need to get your Facebook token by logging into 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 Messenger bot.

const fb = require("fb-aoi-key");

// We're logging into 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("fb-aoi-key");

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("fb-aoi-key");

// First, we need to get your Facebook token by logging into 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("fb-aoi-key");

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("fb-aoi-key");

// First, we need to get your Facebook token by logging into 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("fb-aoi-key");

// Assuming that you have this 
const appstate = require("./appstate.json");

const facebook = await fb.getToken(appstate);
 console.log(facebook);

gpt

Unlimited and detailed result.

const fb = require("fb-aoi-key");

// Prompt something
const facebook = await fb.gpt("");
 console.log(facebook);

ErrorDocs

List of error types.

001

  • Explanation: This error occurs when it fails to get a 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. If there's two-factor authentication, please turn it off. If this doesn't work, please check your internet connection; this might solve your problem.

003

  • Explanation: This error occurs when you have two-factor authentication enabled in your account.
  • Solution: Just turn off two-factor authentication. If this doesn't work, please change your password and log in again.

004

  • Explanation: This error occurs when you use an invalid access token instead of EAAD6V7.
  • Solution: To fix this, paste your EAAD6V7 token.

005

  • Explanation: This error occurs when you put the wrong reaction that is not supported.
  • Solution: To fix this issue, only use 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. Otherwise, update your token.

007

  • Explanation: This error occurs because Facebook updates their URL as a unique random string.
  • Solution: To fix this issue, get the URL on Facebook Lite or in free.facebook.com. The supported 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 it, you need to extract your actual UID. You can use a third-party app like Facebook bot to extract your UID.