[twitter-dev] How to tell an item is a re-tweet?
Hi all, I'm trying to implement similar functionality to the home timeline on twitter where re-tweets appear as such and you have the option of undoing it. The trouble is I cannot tell if a status is a re-tweet or not. Statuses on the home timeline appear to include a re-tweeted parameter but it is always false regardless of the fact I've re- tweeted that item. Can anybody offer some insight on how to do this? Cheers, Matei -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Re: How to tell an item is a re-tweet?
Actually, allow me to re-phrase that: how do I know if I've re-tweeted an item? I would like to prevent users from re-tweeting the same status multiple time. So similar to the home timeline on twitter where they have the Undo functionality for re-tweets. Sorry if I caused any confusion... Cheers, Matei On Sep 20, 12:01 pm, Matei mad.doroba...@gmail.com wrote: Hi all, I'm trying to implement similar functionality to the home timeline on twitter where re-tweets appear as such and you have the option of undoing it. The trouble is I cannot tell if a status is a re-tweet or not. Statuses on the home timeline appear to include a re-tweeted parameter but it is always false regardless of the fact I've re- tweeted that item. Can anybody offer some insight on how to do this? Cheers, Matei -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Re: Favorited tweets are comming from home time line as false
I just tried the feed and my faves come back true. I'm using the json feed however. -Matei On Sep 20, 3:04 pm, João Paulo Sabino de Moraes jona...@gmail.com wrote: Hi Folks, After favoriting some tweets at Twitter home time line menu , when I 'm calling home time line xml from my app, the favorited tweets comes with false in favorited node within the xml file? is it normal ? -- João Paulo S. de Moraes +55 81 3432 3804 +55 81 9189 3814 (mobile) -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Getting the latest status
Hi all, I was wondering what the best way to get a user's latest status is. Right now I am using the verify_credentials call to do it, since I don't really know the user Id from the OAuth flow. The trouble with this approach is that the result doesn't always include the status. Is there a better way of doing this, maybe I'm totally missing something obvious. BTW, the project I'm on uses heavy JavaScript and a C# backed to proxy Twitter API calls. Cheers, Matei -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Re: Getting the latest status
Thanks Taylor! {face palm} Cheers, Matei On Sep 14, 10:58 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Matei, The simplest way to accomplish this would be a single GET request. GEThttp://api.twitter.com/1/statuses/user_timeline.xml?screen_name=twitt... If you weren't interested in processing retweets, you could omit the include_rts=true parameter, but I would bump the count to at least 5 since disincluded retweets still apply to the count parameter's calculations. Taylor On Tue, Sep 14, 2010 at 9:51 AM, Matei mad.doroba...@gmail.com wrote: Hi all, I was wondering what the best way to get a user's latest status is. Right now I am using the verify_credentials call to do it, since I don't really know the user Id from the OAuth flow. The trouble with this approach is that the result doesn't always include the status. Is there a better way of doing this, maybe I'm totally missing something obvious. BTW, the project I'm on uses heavy JavaScript and a C# backed to proxy Twitter API calls. Cheers, Matei -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] home_timeline count
Hi all, I was wondering if there is an good way of getting a count of statuses in home_timeline. I have to implement a Load more feature which loads more tweets if they are available. The issue is with available part. The API doesn't reliably return 20 unfortunately so I can;t simply hide the button when I get back a count of less than 20. It also doesn't return a total count so that I can verify I've reached the end that way. Is there any way of doing this? The API keeps me guessing... :) Cheers, Matei -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Re: Twitter logout - hate to open this can of worms again
Thank for the replies everyone. It's unfortunate there's no good solution to this. Since we only do this the first time a user authorizes the widget as some of you have mentioned, it mitigates the issue somewhat. We'll probably try to notify the user to log out from the twitter site manually. Cheers, Matei -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Re: Twitter logout - hate to open this can of worms again
bump? On Sep 1, 10:45 am, Matei mad.doroba...@gmail.com wrote: Hi everyone, I am compelled to ask because the search turned out a few post that were somewhat vague and didn't answer all my questions. I have a website widget that interacts heavily with Twitter. We use OAuth to authenticate our requests. To logout the users from our side we destroy the OAuth token. However during the initial OAuth workflow Twitter places a cookie on the browser, so if the user logs out from our site but navigates to the Twitter site they are still logged in. Closing the browser solves this, as it appears the cookie is a session cookie. Calling the account/end_session.json end point does nothing for use because the call is server side so the cookie doesn't get replaced. I am a little concerned about this behavior since the widget will be on a public site users can access from public computers. It is possible the users will log out of our widget but not close the browser window. At that point someone could navigate to twitter and still be logged in with their account. So finally my questions are: 1. Is how do I reliably log users out of Twitter? 2. Is it really necessary for Twitter to send this cookie during the OAuth workflow? The API is stateless so the cookie is really un- necessary as far as using the apis is concerned. Sorry for the lengthy post, responses are greatly appreciated! Cheers, Matei -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Twitter logout - hate to open this can of worms again
Hi everyone, I am compelled to ask because the search turned out a few post that were somewhat vague and didn't answer all my questions. I have a website widget that interacts heavily with Twitter. We use OAuth to authenticate our requests. To logout the users from our side we destroy the OAuth token. However during the initial OAuth workflow Twitter places a cookie on the browser, so if the user logs out from our site but navigates to the Twitter site they are still logged in. Closing the browser solves this, as it appears the cookie is a session cookie. Calling the account/end_session.json end point does nothing for use because the call is server side so the cookie doesn't get replaced. I am a little concerned about this behavior since the widget will be on a public site users can access from public computers. It is possible the users will log out of our widget but not close the browser window. At that point someone could navigate to twitter and still be logged in with their account. So finally my questions are: 1. Is how do I reliably log users out of Twitter? 2. Is it really necessary for Twitter to send this cookie during the OAuth workflow? The API is stateless so the cookie is really un- necessary as far as using the apis is concerned. Sorry for the lengthy post, responses are greatly appreciated! Cheers, Matei -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en