ios - Cordova/Ionic Facebook getLoginStatus not working -


i developing app in ionic/cordova login on facebook. before showing "login-page" check if user connected.

the following getloginstatus check works expected in ios simulator. when testing on actual device, getloginstatus callback not fired.

facebookconnectplugin.getloginstatus(     function (response) {          if (response.status == "connected") {             set_tokens(response);             $location.path('/tab/person/me/events');         }     },      function (response) { alert(json.stringify(response)) } ); 

already set facebook-app public , verified app-id.

can give reason described behaviour?

i have following implementation facebook login using facebookconnect plugin.

facebookconnectplugin.getloginstatus(             function(response){                  if(response.status == "connected"){                     //do something, example share or redirect                 }else{                     facebookconnectplugin.login(["basic_info"],                          function(success) { /*do something...*/},                          function(error) {                                   //handle error                                 });                 }             }, function(error) {                         // handle error             })      } 

if still have errors, try log error , success events see happening. implementations works in controller.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -