mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
feat(facebook): add support for business login using config ids (#1990)
This commit is contained in:
@@ -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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user