dcramer / wp-lifestream

Lifestreaming plugin for Wordpress
http://forums.lifestrm.com/index.php
122 stars 31 forks source link

Twitter OAUTH #42

Closed teckie closed 13 years ago

teckie commented 14 years ago

Twitter feed can't be retrieved starting September 1, 2010. I think it's because they changed to OAUTH instead of the basic one.

WP: Version 3.0.1 Lifestream: Version 0.99.9.8-BETA

Vlahn commented 14 years ago

I'll second this. Basic authentication is now dead, as outlined here (http://dev.twitter.com/announcements). Are their any plans to update the lifestream plugin to use oAuth for user-authentication? While I CAN add my Twitter RSS as a generic feed, lifestream turns the entire content of each status update into a link to the individual status update page at twitter.com, meaning links within the text of each update no-longer work directly from a blog page.

ronaldlokers commented 14 years ago

Can this please be updated to use oAuth?

simonnreynolds commented 14 years ago

this is definitely an issue that needs to be looked up.. should be easy to fix

mousey commented 13 years ago

I've fixed this issue:

http://www.robmcghee.com/programming/twitter-for-lifestream-fix/

You just add: .'&source=twitterandroid'

After the end of line 72: return $url_base . '/statuses/user_timeline/'.$this->get_option('username').'.rss?page='.$page.'&count='.$count;

Giving you this: return $url_base . '/statuses/user_timeline/'.$this->get_option('username').'.rss?page='.$page.'&count='.$count.'&source=twitterandroid';

You can see that it's worked on my blog at http://robertmcghee.co.uk

tquizzle commented 13 years ago

@mousey - Doesnt seem to work for me. I've noticed that the requested change has been added to the master here, but none of my Twitter feeds are updating nor can I add a new one. When adding new one this is what I get:

There were errors with your request:

Error fetching feed from http://twitter.com/statuses/user_timeline/[myusername].rss?page=1&count=20&source=twitterandroid (A feed could not be found at ).... <?xml version="1.0" encoding="UTF-8"?>

/statuses/user_timeline[myusername].rss?page=1&count=20&source=twitterandroid The funny, or annoying part of this is that I can click the link and clearly see the atom feed with all its details. So why is lifestream unable to account for this feed?
mousey commented 13 years ago

@tquizzle

I'm not a programming guru I just found out about the flag sorry. but at a guess I would say it sounds like you have a non UTF-8 characters in your current 20 tweets and so this is causing the script to error.

Other than that sorry I have no idea

hm2k commented 13 years ago

@mousey that works for me

Any fix is better than no fix...

mousey commented 13 years ago

See above

hm2k commented 13 years ago

I saw.

The fix should be implemented.