Socket
Socket
Sign inDemoInstall

@aestetype/find-facebook-id

Package Overview
Dependencies
47
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aestetype/find-facebook-id

[![npm version](https://badge.fury.io/js/find-facebook-id.svg)](https://badge.fury.io/js/find-facebook-id) [![CircleCI](https://circleci.com/gh/pradel/find-facebook-id.svg?style=svg)](https://circleci.com/gh/pradel/find-facebook-id)


Version published
Maintainers
2
Created

Readme

Source

find-facebook-id

npm version CircleCI

Find a facebook id given a Facebook name.

Support:

  • users
  • pages
  • groups (You will need a valid facebook access token)

Install

yarn add find-facebook-id
npm i --save find-facebook-id

Usage

import findFacebookId from 'find-facebook-id';

// Find facebook id return a promise

const id = await findFacebookId('zuck');

findFacebookId('zuck').then((id) => {
  console.log(`facebook id of zuck is: ${id}`);
}).catch((err) => {
  console.log(err);
});

// To query a group you must pass a valid facebook access token
findFacebookId('groupsatopenuniversity', facebookAccessToken).then((id) => {
  console.log(`facebook id of groupsatopenuniversity is: ${id}`);
}).catch((err) => {
  console.log(err);
});

Cli

Install:

yarn global add find-facebook-id
npm i -g find-facebook-id

Usage:

$ find-facebook-id <username/pagename>
$ find-facebook-id <groupname> <facebook-access-token>

FAQs

Last updated on 10 Jan 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc