Skip to content

chrisvogt/get-fbid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-fbid Build Status codecov

Get the FBID for a Facebook Group, Page or Profile.

Install

$ npm install get-fbid

Usage

const getFBID = require('get-fbid');

getFBID('google');
//=> '104958162837'

API

getFBID(username)

input

Type: string

The username for the Group, Page or Profile..

Errors

getFBID() rejects when it is unable to find an FBID for a username. It also rejects when Facebook returns a 404, which can happen for a valid user depending on their privacy settings.

License

MIT © Chris Vogt