The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
client code added for FB login
Mark Burggraf16c8c06fe4c3
diff --git a/web/docs/guides2/auth-facebook.mdx b/web/docs/guides2/auth-facebook.mdxindex cde82ffe4a9..2ae6abd9d16 100644--- a/web/docs/guides2/auth-facebook.mdx+++ b/web/docs/guides2/auth-facebook.mdx@@ -69,6 +69,7 @@ From the "Add Products to your App" screen:- Click "Settings / Basic" in the left sidebar- Copy your App ID from the top of the "Basic Settings" page- Under "App Secret" click "Show" then copy your secret+- Make sure all required fields are completed on this screen.### Enter your Facebook App ID and Secret into your Supabase Project@@ -80,7 +81,15 @@ From the "Add Products to your App" screen:- Enter your "Facebook client ID" and "Facebook secret" saved in the previous step- Click "Save"-### TODO - JavaScript Client API+### Add login code to your client app++The JavaScript client code is documented here: [Supabase OAauth Client Code](https://supabase.io/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)++```js+const { user, session, error } = await supabase.auth.signIn({+ provider: 'facebook'+})+```## Resources