Twitter connect plugin ionic 2 error "failed login session"


#1

Hello Everyone,

I integrated twitter-connect-plugin in my app. Previously twitter login was working fine in android but now its showing “failed login session” whenever I am trying to login using twitter. In iOS also same issue. I followed following link to integrate twitter-connect-plugin.

http://blog.ionic.io/twitter-app-ionic-2/

Please suggest any solution, I am stuck in this issue.

Thanks.


#2

I am having a similar issue. Android is fine. Did you discover the cause?


#3

Same issue also on Android, following same tutorial but obtaining only “failed login session”.
Any advice?

Thanks in advance.
David.


#4

For me seems twitter_key and twitter_secret_key passed to java code of plugin are void strings.
Going to investigate again!

David.


#5

Solved for Android reading again the tutorial and importing preferences as described.
About iOS: I can’t test but what about try to insert into config.xml foreseen variables by official ionic native twitter plugin? https://ionicframework.com/docs/native/twitter-connect/

<plugin name="twitter-connect-plugin" spec="0.6.0">
        <variable name="FABRIC_KEY" value="db4d6811178d3adaeb5e0dcc8969e7c27e6d1137" />
        <variable name="TWITTER_KEY" value="<twitter_key>" />
        <variable name="TWITTER_SECRET" value="twitter_secret" />