Facebook Login button in Ionic View App

The Facbook login button in the Apk i am building works. But when i try the app from Ionic View App and not the apk directly, the button doesnt respond. ionic view app have the same problem in iOS and Android. Do you have any idea why ?