mariella725 / TwitterOAuth

0 stars 0 forks source link

Issue #2

Open mariella725 opened 8 years ago

mariella725 commented 8 years ago

/cc @codepathreview

My app was working before, but I was making some last minute changes before submitting and now it wont go back to the homescreen after logging in (look at the gif). I will work on resolving this issue lol.

chieger commented 8 years ago

Mariella,

Were you ever able to get the app completed? I noticed that you checked all the required user stories off in the README but the gif still looks like you are having issues...

If your app is complete...please add an animated gif.

We are already 4 days beyond the submission deadline and 3 days beyond the extension. 😬

Thanks Charlie

mariella725 commented 8 years ago

Hi Charlie

I went to add in my gif on Wednesday night and for some reason, when I ran my app a second time, it wouldn't get the access token at all so after I logged in, it would just prompt me with a login in button again. The funny thing is that the login button it prompts me with after I log in is not even in my app!! I'm not sure why this is happening. Since Wednesday night, I've been asking my classmates and mentors for help. My classmates examined it and we analyzed it for any mistakes I could've made and we couldn't find any!!! I also spent a lot of time re-reading and debugging the code on my own and I can't find anything. Neither Jaayden or Madhan has gotten back to me yet so I am waiting for them. This happened in my first attempt at this app last week, but I started a new project since then. I'm not sure why this is happening, but everything looks right! PLease take a look at my code if you can! (I swear i'm not lying/crazy)

https://github.com/mariella725/TwitterOAuth

-Mariella

On Thu, Feb 25, 2016 at 1:59 PM, Charlie Hieger notifications@github.com wrote:

Mariella,

Were you ever able to get the app completed? I noticed that you checked all the required user stories off in the README but the gif still looks like you are having issues...

If your app is complete...please add an animated gif.

We are already 4 days beyond the submission deadline and 3 days beyond the extension. 😬

Thanks Charlie

— Reply to this email directly or view it on GitHub https://github.com/mariella725/TwitterOAuth/issues/2#issuecomment-188930633 .

chieger commented 8 years ago

The funny thing is that the login button it prompts me with after I log in is not even in my app!!

I think when you made a new app, you did not change the url in your callback and that's why it is not opening up the correct app when it comes back from Twitter. Your callbackURL, the url that is going to open when returning from Twitter in mobile Safari (which will open your app) is set to "cptwitterMariella://oauth" but in your url type is set to, MariellaTwitter. Also, your Identifier needs to match the Bundle Identifier of your app which is Twitter-DevelopMare, not Mariella Twitter

<img src="http://i.imgur.com/KKCWHBS.png", width="700" />

 twitterClient.sharedInstance.fetchRequestTokenWithPath("oauth/request_token", method: "GET", callbackURL: NSURL(string: "cptwitterMariella://oauth"), scope: nil, success: {
            (requestToken: BDBOAuth1Credential!) -> Void in
            print("got the request token")
mariella725 commented 8 years ago

/cc @codepathreview @chieger All done! Thanks for your patience and assistance