© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago
datarecall

facebook signInWithOAuth help

Is there an way to use the code provided by supabase but to open the facebok app for the user instead of web. More then likely the user will not be logged into web on their mobile device but have the facebook app installed.

I would assume externalApplication would open facebook app itself but it seems to load urls. I have also verified that kIsWeb is false.
Future<void> signInWithFacebook() async {
  await supabase.auth.signInWithOAuth(
    OAuthProvider.facebook,
    authScreenLaunchMode:
        kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.
  );
}
Future<void> signInWithFacebook() async {
  await supabase.auth.signInWithOAuth(
    OAuthProvider.facebook,
    authScreenLaunchMode:
        kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.
  );
}


I tried the alternative approach using
flutter_facebook_auth
flutter_facebook_auth
however there are several issues concerning limited login vs old login methods that seem to be causing an issue in flutter.
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Update scopes using signInWithOAuth?
SupabaseSSupabase / help-and-questions
12mo ago
Callback for supabase.auth.signInWithOAuth?
SupabaseSSupabase / help-and-questions
3y ago
signInWithOAuth is not a function error.
SupabaseSSupabase / help-and-questions
4y ago
signInWithOAuth - differentiate sign in vs sign up?
SupabaseSSupabase / help-and-questions
3y ago