In Graph Facebook API, how can I get the user's id given users's email?

749 Views Asked by At

We are creating an integration with Facebook Workplace.

The only information we have about users is their email address. We require to find the user's Id in order to use the API and receiving webhook events.

How can we do this?

Thanks!

1

There are 1 best solutions below

0
Francesca On BEST ANSWER

Accordingly with the documentation, you just need to call the graph apis endpoint adding the user email address at the end of the url

GET /{email_address} HTTP/1.1 Host: graph.facebook.com

The Workplace integration needs Read user email addresses permissions, otherwise you will not be able to perform the call.