© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
2 replies
sergical

Facebook provider authentication not working

const { data, error } = await supabase.auth.signInWithOAuth({
      provider: provider,
      options: {
        redirectTo: `${SERVER_URL}/auth/callback`,
      },
    });
    if (error) {
      alert(error.message);
      return;
    }
    console.log(data);
  };
const { data, error } = await supabase.auth.signInWithOAuth({
      provider: provider,
      options: {
        redirectTo: `${SERVER_URL}/auth/callback`,
      },
    });
    if (error) {
      alert(error.message);
      return;
    }
    console.log(data);
  };


The same code works for Google as a provider no problem.

URL when clicking login with facebook and signing into my facebook account: https://www.facebook.com/dialog/oauth?client_id=599896308876518&redirect_to=https%3A%2F%2Fdev.seapeopleapp.com%2Fauth%2Fcallback&redirect_uri=https%3A%2F%2Fcscecvotjgvibosbfwjn.supabase.co%2Fauth%2Fv1%2Fcallback&response_type=code&scope=email&state=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDIzMTcwMzMsInNpdGVfdXJsIjoiaHR0cHM6Ly9kZXYuc2VhcGVvcGxlYXBwLmNvbSIsImlkIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwiZnVuY3Rpb25faG9va3MiOm51bGwsInByb3ZpZGVyIjoiZmFjZWJvb2siLCJyZWZlcnJlciI6Imh0dHBzOi8vZGV2LnNlYXBlb3BsZWFwcC5jb20vYXV0aC9jYWxsYmFjayIsImZsb3dfc3RhdGVfaWQiOiIzMGIzNWU5MC0wYWUyLTRkZDEtYTU0Zi1kMzFmMjEyNjVlN2EifQ.rapD92dvjr61yMDr06wLj3GaavzST3z8M7bTY_WuPfA&ret=login&fbapp_pres=0&logger_id=5a213518-6141-4918-9990-17c6e872726d&tp=unspecified&cbt=1702316734302&ext=1702320344&hash=AebAl0vm1NRM3Sc4dfE
Screenshot_2023-12-11_at_12.48.16_PM.png
Screenshot_2023-12-11_at_12.47.55_PM.png
Screenshot_2023-12-11_at_12.47.46_PM.png
Log in or sign up to view
See posts, photos and more on Facebook.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Authentication not working
SupabaseSSupabase / help-and-questions
4y ago
Queue authentication suddenly not working?
SupabaseSSupabase / help-and-questions
14mo ago
React authentication not working as expected
SupabaseSSupabase / help-and-questions
4y ago
Supabase Authentication users create is not working
SupabaseSSupabase / help-and-questions
13mo ago