{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/83","labels_url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/83/comments","events_url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/83/events","html_url":"https://github.com/ParsePlatform/ParseUI-Android/issues/83","id":112072276,"number":83,"title":"Twitter login not working?","user":{"login":"Orbyt","id":8474654,"avatar_url":"https://avatars.githubusercontent.com/u/8474654?v=3","gravatar_id":"","url":"https://api.github.com/users/Orbyt","html_url":"https://github.com/Orbyt","followers_url":"https://api.github.com/users/Orbyt/followers","following_url":"https://api.github.com/users/Orbyt/following{/other_user}","gists_url":"https://api.github.com/users/Orbyt/gists{/gist_id}","starred_url":"https://api.github.com/users/Orbyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orbyt/subscriptions","organizations_url":"https://api.github.com/users/Orbyt/orgs","repos_url":"https://api.github.com/users/Orbyt/repos","events_url":"https://api.github.com/users/Orbyt/events{/privacy}","received_events_url":"https://api.github.com/users/Orbyt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/labels/needs%20more%20info","name":"needs more info","color":"ffd182"}],"state":"open","locked":false,"assignee":{"login":"wangmengyan95","id":4666935,"avatar_url":"https://avatars.githubusercontent.com/u/4666935?v=3","gravatar_id":"","url":"https://api.github.com/users/wangmengyan95","html_url":"https://github.com/wangmengyan95","followers_url":"https://api.github.com/users/wangmengyan95/followers","following_url":"https://api.github.com/users/wangmengyan95/following{/other_user}","gists_url":"https://api.github.com/users/wangmengyan95/gists{/gist_id}","starred_url":"https://api.github.com/users/wangmengyan95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangmengyan95/subscriptions","organizations_url":"https://api.github.com/users/wangmengyan95/orgs","repos_url":"https://api.github.com/users/wangmengyan95/repos","events_url":"https://api.github.com/users/wangmengyan95/events{/privacy}","received_events_url":"https://api.github.com/users/wangmengyan95/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-19T05:05:43Z","updated_at":"2015-10-21T05:18:16Z","closed_at":null,"body":"Is the twitter login not working for anyone else? Im using a ParseLoginDispatchActivity to protect an Activity behind a sign-up wall if theres no logged in user. \r\n\r\nI have TWITTER_LOGIN_ENABLED set to true in my Manifest via:\r\n\r\n```xml\r\n<meta-data\r\n                android:name=\"com.parse.ui.ParseLoginActivity.TWITTER_LOGIN_ENABLED\"\r\n                android:value=\"true\"/>\r\n```\r\n\r\nUpon the sign-up activity being launched and then clicking on the \"Log in with Twitter\" button, I get a \"Twitter login failed\" Toast message, and after a few tries I get:\r\n\r\n```\r\nLeak found\r\n    java.lang.IllegalStateException: AndroidHttpClient created and never closed\r\n            at android.net.http.AndroidHttpClient.<init>(AndroidHttpClient.java:156)\r\n```\r\n\r\nAnyone else having this issue? Any ideas on a solution?"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/comments/149785284","html_url":"https://github.com/ParsePlatform/ParseUI-Android/issues/83#issuecomment-149785284","issue_url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/83","id":149785284,"user":{"login":"Orbyt","id":8474654,"avatar_url":"https://avatars.githubusercontent.com/u/8474654?v=3","gravatar_id":"","url":"https://api.github.com/users/Orbyt","html_url":"https://github.com/Orbyt","followers_url":"https://api.github.com/users/Orbyt/followers","following_url":"https://api.github.com/users/Orbyt/following{/other_user}","gists_url":"https://api.github.com/users/Orbyt/gists{/gist_id}","starred_url":"https://api.github.com/users/Orbyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orbyt/subscriptions","organizations_url":"https://api.github.com/users/Orbyt/orgs","repos_url":"https://api.github.com/users/Orbyt/repos","events_url":"https://api.github.com/users/Orbyt/events{/privacy}","received_events_url":"https://api.github.com/users/Orbyt/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T05:18:15Z","updated_at":"2015-10-21T05:18:15Z","body":"@wangmengyan95 \r\n\r\nAS 1.3.2 on a Nexus 5 running Lollipop.\r\nThese are all Parse related gradle dependencies im using:\r\n\r\n```\r\ncompile 'com.parse:parse-android:1.10.3'\r\n    compile 'com.parse.bolts:bolts-android:1.+'\r\n    compile 'com.parse:parsetwitterutils-android:1.10.3'\r\n    compile project(':ParseUI-Login')\r\n    compile project(':ParseUI-Widget')\r\n```\r\n\r\nFor the dispatchactivity, I simply have a button that launches the protected activity. On button click, im doing:\r\n\r\n```java\r\nIntent intent = new Intent(getContext(), AddDispatchActivity.class);\r\n                startActivity(intent);\r\n```\r\n\r\nand the dispatchActivity:\r\n\r\n```java\r\npublic class AddDispatchActivity extends ParseLoginDispatchActivity {\r\n    @Override\r\n    protected Class<?> getTargetClass() {\r\n        return AddActivity.class;\r\n    }\r\n}\r\n```\r\n\r\nThis works fine if I signup using email/password, but again, the Twitter login just gives me a \"Twitter login failed\" Toast message.\r\n\r\nI just downloaded and tried the ParseLoginSampleWithDispatchActivity sample app, and I got the same error when trying to login with twitter. With this sample though, I wasnt able to login with email/password either. \r\n\r\n\r\n\r\n"}}