Bookface

A Facebook API wrapper that's not from 2011.

import Facebook from 'bookface';
import type { Authentication } from 'bookface';

// Initialize the client
const facebook = new Facebook();
const auth: Authentication = { };

// Login (unnecessary but good to have)
await facebook.login(auth)
  .then(({ credentials, scope }) => {
    console.log(credentials);
    console.log(scope);
  });

// Publish a post to your page
const post = await facebook.page.posts.publish({
  message: "Hello World!",
  media: "./image.png"
});

// Read your page posts
const posts = await facebook.page.posts.read();
The Graph API is Meta's platform for building apps and services that interact with their products (i.e. Facebook, Instagram). Bookface is your (opinionated) one-stop shop for interacting with the Graph API through a more intuitive, organized, and straightforward syntax.To get started with Bookface, check out the getting started guide.