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 8887253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:45:40+00:00 2026-06-14T21:45:40+00:00

I am using facebooksdk.framework 3.1 when I login my app with my account, native

  • 0

I am using facebooksdk.framework 3.1

when I login my app with my account, native login dialog pops up even though web based auth
completed. I need to turn off either native login dialog or web based auth but I don’t know how.

I tried to find facebook.m file but there was no such file on facebooksdk.framework 3.1

how do I turn off safariauth or native auth?? It is very strange two login process occurs at the
same time.

  • 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-06-14T21:45:41+00:00Added an answer on June 14, 2026 at 9:45 pm

    If you use phonegap facebook plugin, you should call FB.getLoginStatus() carefully.

    If FB.getLoginStatus() fires before FB.init() is done, the function would return a response as

    ‘not connected’ even if user is already connected.

    my login problem was due to FB.getLoginStatus() on my redirected page.

    even if user succed login and procceded to my redirected page, the page run FB.getLoginStatus()

    and result was always ‘not connected’ because FB.init() not completely executed.

    facebook provides async function to solve this problem but it didn’t work when I tested on phonegap.

    to check user login, I use FB.Event.subscribe and localstorage for now.

    on the page that needs FB functions, I added this javascript code

    FB.Event.subscribe('auth.login', function(response){
        localStorage.setItem('fblogin', true);
        console.log('login event');
    }
    FB.Event.subscribe('auth.logout', function(response){
        localStorage.setItem('fblogin', false);
        console.log('logout event');
    }
    
    document.addEventListener('deviceready', function(){
     try{
          FB.init({ appId : '1234567889' , nativeInterface : CDV.FB, useCachedDialogs : true});
     }catch(e){
          alert(e);
     }
     var fbval = localStorage.getItem('fblogin');
     if(fbval){
         // your code for connected status
     }
    }); 
    

    basically, I set ‘fblogin’ localStorage value true whenever login event occurs,

    and set the value ‘false’ whenever logout event occurs.
    by comparing ‘fblogin’ value, I check users are logged or not.

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

Sidebar

Related Questions

I'm trying to add facebook connect login to my phonegap/cordova app using the https://github.com/mgcrea/cordova-facebook-connect
In my ios app I want to post on the user wall using facebookSDK
I'm trying to implement the Facebook login in my app using Eclipse, so I
Is it possible to read Facebook's wall posts from a console app using facebooksdk
I am using Facebook SDK in hackbook and tried to login and do all
I'm using the Facebook SDK to allow users to share content through my app
I downloaded the Facebook SDK for Android and I'm using it in my app
Can I prevent Facebook iPhone app from opening when using facebook SDK from my
I tried to login using facebook followed the facebook tutorial in https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/ to implement
I'm sending an app request from my application using Facebook SDK: NSMutableDictionary* params =

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.