Get the FBID for a Facebook Group, Page or Profile.
$ npm install get-fbid
const getFBID = require('get-fbid');
getFBID('google');
//=> '104958162837'
Type: string
The username for the Group, Page or Profile..
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.
MIT © Chris Vogt