How to call Facebook API from a rule

Hi,
I need to call Facebook from a rule to obtain the id tokens for business.

We are doing a migration to Auth0, where we are centralising users from multiple facebook apps (and db) to a single auth0 store.

Whilst Google has a unique ID per user, Facebook scopes the user ids per app. They have however a concept of a token per business which uniquely identifies a user across multiple apps.

Looking at all the fields in the connection config I cannot find these, so I would have to get them from the Idp connection. How can I call Facebook API within a rule? How can I access the Idp access token to do so?

Thanks

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?