twittertwitter-fabricandroid-twitter

Twitter Fabric integration in Android app not working


I use Fabric to do Twitter single sign on for my app as well as use TweetUI to display a Twitter Timeline elsewhere in my android app.

Last night while I was messing around with some stuff, somehow both stopped working. I am getting the following errors:

1) For my single sign on flow: E/Twitter﹕ Authorization completed with an error com.twitter.sdk.android.core.TwitterAuthException: Authorize failed.

2) For my Tweet timeline activity: E/Twitter﹕ Failed to get app auth token com.packagewriters.mypackage E/TweetUi﹕ 403 Forbidden com.twitter.sdk.android.core.TwitterApiException: 403 Forbidden

--- This one is weird because Timelines use guest authentication only...so even if I messed up my API keys and what not, this should still work?

I triple checked EVERYTHING and reverted all my changes. I pretty much do everything the Fabric docs tell me to do, not to mention it worked for months before tonight. I'm not sure if I somehow accidentally touched something that messed everything up or if Twitter updated/the authentication servers are down/etc...help please?

Thanks!


Solution

  • Ok so for Single Sign On, i finally fixed it. You have to go to your fabric.io dashboard and get your key/secret and HARD CODE it into your activity/fragment where you integrate Twitter Log in.

    This is weird bc Fabric is supposed to do it for you and I've never had to hard code it in before to get it to work. Something fishy is going on here... hopefully it will get fixed soon.

    Tweet Timeline works now. Had to open up the Fabric plugin, navigate to the Embed Tweets subsection and let a gradle sync run its course...