2

I wanted to display twitter feed like in image enter image description here

Is it necessary to do "OAuth" for this?? I am trying to do "OAuth" in using this url.
It is giving:

Access denied Sorry, you're not allowed to access that page.

Twitter feed should be of user which i will give username not who are logged in simulator or device. I am following this tutorial

Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
Nisha
  • 354
  • 2
  • 19
  • There is a bold comment saying "With the release of iOS 5, this article is now outdated. Moving forward, you should seriously consider using the Twitter Framework that ships with the iOS 5 SDK. Only consider implementing the solution demonstrated here if you must support users on older versions of iOS." – Sebastian Wramba May 20 '14 at 08:18
  • @SebastianWramba i know that tutorial is outdated but i wanted to know it necessary to do OAuth for this can you please tell me?? OAuth giving "Access denied Sorry, you're not allowed to access that page". and for iOS 5 do you know about any helpful tutorial i should use? – Nisha May 20 '14 at 08:36

2 Answers2

2

Yes, you need to authenticate.

Try this library https://github.com/nst/STTwitter if you don't want to use Apple's Twitter frameworks as this would require the user of the phone to have a twitter account.

lucianomarisi
  • 1,552
  • 11
  • 24
  • i am trying to authenticate in [this link](https://apps.twitter.com/app/new) but when i click on create your twitter application nothing happend – Nisha May 20 '14 at 09:52
2

"Twitter offers applications the ability to issue authenticated requests on behalf of the application itself" https://dev.twitter.com/docs/auth/application-only-auth

You can use - AFTweetFetcher - "Simple class for retrieving tweets from twitter using their new 1.1 API without requiring the user to authenticate or have a twitter account stored on their device"

All you need: ConsumerKey and ConsumerSecret

TonyMkenu
  • 7,597
  • 3
  • 27
  • 49
  • i do not need to authenticate right using AFTweetFetcher right? than i am using consumerKey and consumerSecret which is in [this page](https://dev.twitter.com/docs/auth/application-only-auth) but its giving error Unable to verify your credentials – Nisha May 20 '14 at 10:11
  • Error : {NSErrorFailingURLKey=https://api.twitter.com/1.1/statuses/user_timeline.json?count=3&screen_name=NASA, NSErrorFailingURLStringKey=https://api.twitter.com/1.1/statuses/user_timeline.json?count=3&screen_name=NASA, NSUnderlyingError=0xade65e0 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1012.)"} – Nisha May 20 '14 at 10:12
  • it is done when i have changed ConsumerKey and ConsumerSecret. – Nisha May 20 '14 at 11:12
  • i have created new app [here](https://apps.twitter.com/app/new) to get new ConsumerKey and ConsumerSecret. now it is working – Nisha May 20 '14 at 11:20