Created
September 7, 2018 15:25
-
-
Save rajucs/0a4edd7df9cfa319ee5122f8d4b2c2e5 to your computer and use it in GitHub Desktop.
How to get facebook user id with js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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