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

@aestetype/find-facebook-id

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

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)

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
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

Package last updated on 10 Jan 2018

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