Skip to content

Instantly share code, notes, and snippets.

@rajucs
Created September 7, 2018 15:25
Show Gist options
  • Save rajucs/0a4edd7df9cfa319ee5122f8d4b2c2e5 to your computer and use it in GitHub Desktop.
Save rajucs/0a4edd7df9cfa319ee5122f8d4b2c2e5 to your computer and use it in GitHub Desktop.
How to get facebook user id with js
<script>
MessengerExtensions.getUserID(function success(uids) {
// User ID was successfully obtained.
var psid = uids.psid;
}, function error(err, errorMessage) {
// Error handling code
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment