Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4107668
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:32:46+00:00 2026-05-20T21:32:46+00:00

I have an app that uses the Facebook Android SDK. All works well (Facebook

  • 0

I have an app that uses the Facebook Android SDK. All works well (Facebook login, Like functionality) until I installed the Facebook for Android 3rd party application.

Without the 3rd party app, I get the WebView when choosing to login to Facebook. But with the Facebook app installed, user gets directed to the FB app for login (I believe it launches the activity for that app).

Is there a way to prevent my app from using the 3rd party app for anything Facebook related that I do on my app, and only use the WebView from the SDK for login?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:32:47+00:00Added an answer on May 20, 2026 at 9:32 pm

    Alrighty, read through the source code of Facebook SDK and reviewed the authorize method, and found my answer.

    Found out that it’s not a conflict but that’s just how the way it works. The Facebook SDK prefers Single Sign-On, where available which means it will definitely use the Facebook for Android app for Login.

    In the purposes of answering the question (how to prevent app from using 3rd party app), this is what I did:

    mFacebook.authorize(context,
                    new String[] { "user_photos", "friends_photos", "publish_stream" },
                    -1, 
                    (DialogListener) dialogListener);
    

    I just added the 3rd parameter which is the activityCode. Facebook SDK checks whether the value is greater than or equal to zero, and use Single Sign-on.

    And now I know that the ideal and preferred way is to use the Facebook SSO method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have accomplished developing an android app that uses the facebook sdk to integrate
I have an app that uses facebook connect. When it has to login to
I have an app deployed on Goole's Play Store that uses Facebook SSO login.
I have a little web app that uses the Facebook like widget. This page
I am creating an app for android that uses the facebook login. My question
I have an app in a page tab that uses the facebook javascript sdk.
I have an app that uses the navigation controls. What I would like is
I have an IFrame Facebook application that uses Facebook C# SDK. I also use
I have an iframe Facebook application that uses the Facebook PHP SDK to authenticate
I'm working on a Facebook app that uses Facebook groups, and I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.