feat(facebook): add support for business login using config ids (#1990)

This commit is contained in:
Alexander Lyon
2025-04-11 10:42:07 +01:00
committed by GitHub
parent e24a60d717
commit 6b22e08c2b
2 changed files with 16 additions and 1 deletions

View File

@@ -34,9 +34,14 @@ description: Facebook provider setup and usage.
},
})
```
<Callout>
BetterAuth also supports Facebook Login for Business, all you need
to do is provide the `configId` as listed in **Facebook Login For Business > Configurations** alongside your `clientId` and `clientSecret`. Note that the app must be a Business app and, since BetterAuth expects to have an email address and account id, the configuration must be of the "User access token" type. "System-user access token" is not supported.
</Callout>
</Step>
<Step>
### Sign In with Facebook
### Sign In with Facebook
To sign in with Facebook, you can use the `signIn.social` function provided by the client. The `signIn` function takes an object with the following properties:
- `provider`: The provider to use. It should be set to `facebook`.