getLoginStatus not working in ionic2


#1

Hello,

I am trying to check facebook login status in ionic2 using cordova-plugin-facebook4 plugin. Login function working successfully.

Facebook.getLoginStatus().then((res) => function(){ console.log(res); })
This is not working, does not write log on console.

console.log(Facebook.getLoginStatus());
This is working but results like _zone__symbol__value: Object …

How can i use getLoginStatus function with “then”?


#2

Same error.
Works fine on emulator, but not on real device.