Getting a user's Twitter home feed without authentication - ruby-on-rails

I am coding an application which I get a user's profile timeline and user's friends' twitter updates (home feed). I am using Rails and Koala gem.
I can get the user's own twitter updates without authentication but I can't get the user's friends' updates (aka, home feed) without authentication.
I searched Twitter api but api functions that I can use (statuses/home_timeline, statuses/friends_timeline) require authentication.
Is there a way to get friends' updates without authentication? (only updates of public accounts).
I am considering to 1) first getting friend list of a person 2) then getting their public timeline feed and 3) creating a seperate feed. But I want to ask here about the possibilities.

There is no way to directly get a users home_timeline without authenticating as them. Your only option is going to get all the friends user_timelines and combine them into a single timeline.

Related

Public Twitter timeline in UITableView - iOS 7

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.

iOS Facebook API fetch data from timeline using GRAPH API

We have a facebook account. That account 'Liked' 3 open facebook pages. When you login to that facebook account from your browser you can ofcourse see all the posts from those 3 pages on your news feed.
What I want to know is - can I somehow fetch all the data I see on my accounts news feed?
Im not asking how to do it, just is it possible.
I was doing some research, and on facebook.developers they do mention about nodes, which can be users or groups, but it is unclear to me are those groups that I made, so when I login to my mobile app i Actually login with that group account, or they meant that I can get data or other groups out there ?!
Facebook has documentation using FQL queries to GET the users news feed, take a look here
https://developers.facebook.com/docs/reference/fql
What you are looking for is called stream...

Post Tweet as other user using Twitter API?

I've sorted the OAuth Twitter stuff and currently all my application does is grab Tweets and display them on a web page. After the user has given permission for my application to use their account, is there a way to post a Tweet on their behalf i.e. post AS them?
First point of call would be reading here - https://dev.twitter.com/docs/auth/oauth/oauth-echo

Can I get a list of users who have authorized my Twitter app?

I'm trying to get a list of users who have authorized my Twitter application. I've tried checking the API docs, but there seems to be no twitter application specific APIs that I can find. I'm trying to avoid having to store these twitter user names myself, since the user list would be the exact same as Twitter's authorized user list and even handle deauthorized users for me.
No, there's no way to obtain this information from the Twitter API. If you're interested in keeping track of the users who are using your application, you'll need to track it yourself.

Using oAuth to retrieve tweets of a particular ID (equivalent to a page in facebook)

I need to know as to how to implement oAuth in an iphone application.
I have already gone through lot many posts but none of them shows as to How to retrieve tweets from a user profile (like we access facebook wallposts). I tried using an example named bengottlieb/Twitter-OAuth-iPhone but all it does is show the Login prompt and posts a sample Twit at my Twitter profile.
I need to make an application where
the user can view twits for a particular page (same as accessing the wall post for a Page)
Post tweets that will appear on his profile or if possible then also at the profile page for given ID
I was able to fetch the tweets for a particular id using http://search.twitter.com/search.json?ID but may be due to closing of Basic authentication it does not return to me tweets older than a specific time period.
The Twitter search API is not meant to retrieve the tweets from one particular user, even though it does seem to work (up to a certain point back in time). As far as I know the search API does not need authentication, so you're not in trouble regarding the deprecation of Basic authentication there.
To retrieve the tweets for a user, you need to retrieve their timeline. Be sure to use OAuth authentication, as indeed Basic authentication no longer works now.
Check out http://dev.twitter.com/ for more information. The API is documented quite well. You mention basic authentication, so perhaps you could start with http://dev.twitter.com/pages/basic_to_oauth to get you going?

Resources