Public Twitter timeline in UITableView - iOS 7 - ios

I am writing an app for a client and I need to display their twitter timeline in a table view. I need to do this without needing the user to be signed in to a twitter account on their phone. The only ways to display a timeline that I have been able to find so far require that the phone has a signed in twitter account. Any ideas?

You can't retrieve Twitter accounts of any user in an iPhone without acquiring permission from the user.
But if you want to retrieve public posts of a Twitter user whose username you have already known, you can do it using the Twitter API.
Also I would like to mention that AFNetworking networking library has a sample usage of Twitter public timeline. You can find it at: https://github.com/AFNetworking.

Twitter API since v1.1 requires authentication for each request. So the only way to get user timeline is to implement OAuth, or use integrated iOS Twitter API.

Related

How can My App Tweet the Contents a User Submits?

Note: I am posting this because I don't even know what to Google search. I know we're all about thorough research before asking these questions. Any help would be appreciated.
Scenario: User writes a text post from my app and when they submit it, the content is added to a Parse.com class (I know how to do this) and simultaneously it is tweeted from a designated twitter account (that does not belong to the user) let's say #MyCoolAppThatTweets.
In other words, I don't want the user via my app to be permanently logged into #MyCoolAppThatTweets twitter account, but have one-time access to send a tweet from it.
Another way to phrase this question would be: How can my app log into a specific twitter account whose credentials I can "bake" into the app without compromising the security of that twitter account.
I am already aware that normally, users of an iOS app wouldn't automatically want their content being tweeted. For the project I'm making, this is not going to be a concern (it's a secret).
If you need more information or if I need to post this elsewhere, please let me know!
From your question I am not sure if you are familiar with "Twitter part" of Parse.com and Twitter REST API. If not please start by reading this https://www.parse.com/docs/ios/guide#users-twitter-users (or take a look on official Twitter way by using their plugin called Fabric: https://dev.twitter.com/)
Since you mentioned PFUser I will describe you how to achieve it by using Parse.com API.
First your user must be logged in to Twitter account.
I suppose that your user is already logged in into your app as a PFUser so best way to log him into some Twitter account is by linking Twitter account with existing PFUser - https://www.parse.com/docs/ios/guide#users-linking.
After that you can post tweets through user's Twitter account (if permission was granted). I recommend doing that using Parse.com Twitter API calls https://www.parse.com/docs/ios/guide#users-login-amp-signup. To create API requests you need official Twitter REST API which can be obtained here https://dev.twitter.com/docs/api.

FHSTwitterEngine get stored account

I use FHSTwitterEngine for twitting from my app. I know i can use XAuth and OAuth to login twitter account, but I'm wondering if is there any way to login by getting Twitter account assigned to iPhone. I mean that I can assign my twitter account in setting in my iPhone and some app get this stored data from settings and can login user basis on it. Is this feature avaiable under FHSTwitterEngine?
Since it doesn't require/import Social.framework or similar, FHSTwitterEngine does not support iOS Twitter accounts.
Social.framework allows posting to twitter/facebook, but does not offer any information like OAuth tokens to log in outside of it.

Display Twitter Feed of user

I wanted to display twitter feed like in image
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
"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
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.

In IOS 5 how do we login to twitter from our application?

All the tutorial I found explains how to tweet and show an alert message if users cannot tweet.
What about if user hasn't logged in to twitter yet and I want to help user logged in to tweeter.
Basically we want to allow user to sign up to our services via facebook and twitter. We've taken care of facebook. Now we need to so it for twitter.
This are samples of tutorial I found
http://www.raywenderlich.com/5519/beginning-twitter-in-ios-5
I don't want to tweet. I just want to login first so I can store the users' twitter id on my database allowing it to save bookmarks, etc..
All I see is https://dev.twitter.com/docs/ios. It's not clear whether we have to compute the sig manually, do we have to open safari or what.
Did you go through api documentation on twitter integration to ios?
Here is a similar question.May be this will help you
If you want your users to login with their twitter accounts, you will have to register your application with Twitter to obtain a key to sign your requests. You can read more about this on Twitter Developer Page

Getting public photos from Instagram account without login

I want to get all the photos or public photos from my Instagram account, without logging in to it.
Is there an API provided by Instagram to make this happen?
Unfortunately, no. The Instagram API requires Authentication to retrieve a certain accounts pictures. Check out the API Console on Instagram's developer website to see which methods require authentication and which of them don't. I know you can retrieve tags, popular pictures, and search users. Good luck!

Resources