🌍 👀 Find facebook user's user id directly from your console.
Switch branches/tags
Nothing to show
Clone or download
Latest commit c791642 Sep 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig init Feb 3, 2016
.gitattributes init Feb 3, 2016
.gitignore init Feb 3, 2016
.npmignore programmatic use ~ #1 Sep 5, 2018
.travis.yml programmatic use ~ #1 Sep 5, 2018
LICENSE programmatic use ~ #1 Sep 5, 2018
README.md programmatic use ~ #1 Sep 5, 2018
cli.js programmatic use ~ #1 Sep 5, 2018
facebook-id-of.js programmatic use ~ #1 Sep 5, 2018
package-lock.json programmatic use ~ #1 Sep 5, 2018
package.json programmatic use ~ #1 Sep 5, 2018
test.js programmatic use ~ #1 Sep 5, 2018

README.md

facebook-id-of

Easily find user ID of any Facebook user

Getting started

CLI usage

$ [sudo] npm install --global facebook-id-of
$ facebook-id-of
Usage: facebook-id-of <username>

Programmatically

$ npm install --save facebook-id-of
const facebookIdOf = require('facebook-id-of');

// using callback
facebookIdOf('an_user', function (err, facebookId) {
  if (err) return console.error(err);
  console.log(facebookId);
});

// using promise
facebookIdOf('an_user')
  .then((facebookId) => {
    console.log(facebookId);
  })
  .catch((err) => {
    console.error(err);
  });

// using async/await
async function () {
  try {
	  const facebookId = await facebookIdOf('an_user');
	  console.log(facebookId);
  } catch (err) {
	  console.error(err);
  }
}

License

MIT © Rishi Giri