Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 20    Views: 114

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
06/19/13 03:50 AM (12 years ago)

RD Simple RSS - Tweeter feed

Hey guys, never used a RSS feed before. A client is asking for a tweeter feed, should I use the RD Simple RSS feed? Cheers.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
06/19/13 05:31 AM (12 years ago)
Hi MadRod. Unfortunately, Twitter stopped RSS feed support last week. They have an updated API, but I have not looked into it yet to see if there is a way to pull feeds again.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/19/13 11:15 AM (12 years ago)
hummm I see. But that would have the way? Thanks Red Dog. Cheers. Miguel
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
06/19/13 11:17 AM (12 years ago)
feeds are pulled from json only now. I've been working on a twitter wall, for ios 6
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
06/19/13 12:09 PM (12 years ago)
@Kittsy "a Twitter wall" That sounds interesting.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
06/19/13 12:10 PM (12 years ago)
it'll be better when I get the facebook side of it working
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/19/13 12:44 PM (12 years ago)
I am no great tweeter, but does the twitter widget offer a decent alternative to RSS? https://twitter.com/settings/widgets
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
06/19/13 12:46 PM (12 years ago)
i'd say so at least you can retweet
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/19/13 06:51 PM (12 years ago)
I've seen a php script that could convert the json to rss. If I figure it out anytime soon I'll post the tutorial. I need it for myself so I dont mind sharing at all. @Kittsy good luck with that! Sounds interesting OFF topic .. Is your latest favorites plugin close to being on the market?! :)
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
06/20/13 12:25 AM (12 years ago)
@mysps The favourites plugin was submitted weeks ago. A few have bought early seems to be working pretty well. Just a waiting game
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/20/13 02:59 AM (12 years ago)
I thought the new API was using json to deliver "Embedded timelines". You have to create a widget from your twitter account - no RSS. You can respond directly inline if you are logged into a browser (not likely on mobile inside an app) But I'd imagine that using the HTML plugin and adding the widget to the source code would do the trick. Haven't tried it just yet. More info here: https://dev.twitter.com/docs/api/1.1/overview And here: https://dev.twitter.com/docs/embedded-timelines
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
06/20/13 03:20 AM (12 years ago)
Well I can definately populate a tableview with twitters json api
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/20/13 03:40 AM (12 years ago)
Hey Kittsy, Is that a new twitter plugin I'm hearing about :)))
 
Rohan
Veteran developer
Profile
Posts: 79
Reg: Mar 12, 2011
London
10,040
like
06/20/13 02:10 PM (12 years ago)
Hey @MadRod, You can embed a twitter timeline into an HTML page easily enough, although there are problems getting it to work correctly. Main problem I had was that it didn't resize to accommodate the width or height dynamically, in other words itll fit into your screen nicely in portrait, but rotate to landscape and its too narrow, and the bottom of the timeline goes off the page. A workaround is to place the twitter timeline code in a div which gets hidden on rotation to landscape, and a 'please rotate back to portrait' div gets shown instead. Also there seems to be a bug where you can scroll ok, but click on a link and go back to the timeline and scrolling stops working, or to. Be exact you can scroll but only using two fingers, not one. I reached out to Twitter a few weeks back about this, but no reply as of yet. Final problem is that you can define a unique height, but it won't resize to each device, so again created 3 duplicate timelines, one for iPhone, iPhone 5 and ipad, each with a different height, and used css to display the correct height version. So in short you can put a new twitter timeline in your buzztouch app, but it's reliant on twitters javascript code which is still buggy at the moment for use in a mobile app.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/26/13 08:58 AM (12 years ago)
Here is a solution to the Twitter API and RSS. On Github I've found a script by thomasyung. It converts the Twitter JSON to RSS. https://github.com/thomasyung/twitter-json-to-rss 1. Sign up as a developer over at dev.twitter.com and get your app keys. 2. Download the script 3. Open the twitter_auth.php fill in the details 4. Upload to your web server. It must be able to handle PHP 5.3+ I have an old Hostgator account and because my account isnt the latest (after May 30th) I have to add an .htaccess file so that it will handle the script which requires PHP 5.3+ # Use PHP 5.3 AddType application/x-httpd-php53 .php 5. Us the RD Simple RSS or whatever RSS plugin that you have and add this url to your Buzztouch Control panel: http://[server_name]/twitter_json_to_rss.php?screen_name=[user_name] The xml elements will be: item, title, description, link Good luck!
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
06/26/13 12:54 PM (12 years ago)
FYI for those interested I also found this link to generate a twitter feed: http://www.twitter-rss.com Plugged into my RSS test feed successfully.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/26/13 01:22 PM (12 years ago)
@FromtheNE - thats a great find! However, I like to have control over my feed just in case that website is ever removed or suspended one day. Also, using my API and twitter info, I feel a tad bit better :) Its definitely much easier than I posted especially if you don't have webspace! Thanks
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
06/26/13 05:29 PM (12 years ago)
Yes thanks mysps definitely concerned over removal of that site, Twitter seems to be cracking down lately on RSS. Thanks for sharing the JSON solution, will check it out.
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
10/02/13 07:26 AM (11 years ago)
hmmm... seems simple enough to follow, only an idiot could get it wrong, right? My feed looks like this http://<server>/twitter/twitter_json_to_rss.php?screen_name=<name of feed>
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/02/13 08:04 AM (11 years ago)
I had the same problem, does your host have: 4.PHP 5.3+
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
10/02/13 09:16 AM (11 years ago)
I'm not such an idiot after all! my host was on 5.2, i just updated it to 5.4 :o) awesome find and explained well, thankyou
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.