I am trying to implement Twitter Login Ionic 4 app. I used reference from here. Below is my imports:

import { TwitterConnect } from '@ionic-native/twitter-connect/ngx';

I am using below function:

doTwLogin(){
     this.tw.login().then(
       (result) => {
        console.log('Successful login!');
        console.log(result);
      },
      function(error) {
        console.log('Error logging in');
        console.log(error);
      }
    );
    }

I am getting below error while running this function

Error logging in
 Failed login session

Kindly suggest me any solution.

0 Answers