TinyPortal

Development => Support => Topic started by: QueenTiye on January 02, 2009, 06:21:25 AM

Title: TWITTER! How Do I Tweet To The Portal?
Post by: QueenTiye on January 02, 2009, 06:21:25 AM
Here's what I want to do - I want to be able to twitter to a box on the portal - and I want for members to be able to follow the forum twittering, and twitter back - so it will show up right on the front page.

Can that be done?

QT
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: G6Cad on January 02, 2009, 07:41:50 AM
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: JPDeni on January 02, 2009, 04:50:50 PM
The concepts involved in importing Twitter data are here (http://apiwiki.twitter.com/). Since I haven't a clue about Twitter itself, I wouldn't be able to help you develop anything about it for TP. But if you figure it out, please come back and post it for others.
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: bloc on January 02, 2009, 11:28:40 PM
It would seem the "user_timeline" and "friends_timeline" part of the REST API could be used, as it would follow the one account and its friends/followers respectively.But it returns the result in xml/rss/json format so some coding to output that would be needed.

I have too many projects going on right now to look into it, but it seems interesting to add some of this to TP in the future.
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: reddragon300 on July 08, 2009, 07:00:19 PM
could a person not use RSS?
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: ZarPrime on July 08, 2009, 10:00:01 PM
Hi reddragon300,

You could use an RSS block to get a feed from any Twitter page, no problem.  As far as being able to Twitter to and from your Forum, and enable others to Twitter on your Twitter page, it seems to me that there would be some security issues with that.  Do you really want every spammer in the World to be able to Twitter on your own Twitter page?  Or are you talking about getting a feed from every Twitter user on your site into their own block?

Like I said, you can get the RSS feed from any Twitter page you want to and place it into a block on your site.  If you want to see what I mean, have a look here at my test site ...
http://talesofthehavenexpanse.com/smf1test/index.php

Scroll to the bottom of the Front Page and you'll see the RSS feed from Bloc's Twitter page.  If I had a Twitter page, I would have put my own feed in there, but I don't.

ZarPrime
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: reddragon300 on July 09, 2009, 03:32:02 PM
Oh... sorry I didn't read close enough.

I run a website for an actress. I just wanted to display her tweets. I ended up importing the twitter widget.
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: andre on September 26, 2009, 01:35:41 AM
There doesn't seem to be a way to limit the number of tweets when using the RSS block... does anybody know a way to limit the block size or limit the number of tweets to the last 5, or 10 or whatever?
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: G6Cad on September 26, 2009, 05:42:21 AM
That is something you have to ask the Twitter crew, RSS is just fetched and read by TP as it comes from the site you yake the feeds from.

You can try to use some of the RSS feeds converters on the net and that way limit posts etc,   Google on RSS feed to java or similar to find out how it works  :)
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: andre on September 27, 2009, 03:17:22 AM
I used feedburner. The problem with that is that feedburner doesn't like twitter and even though the twitter feed validates, feedburner blocks twitter feeds. So I had to make a php script to grab the twitter feed:
readfile("http://twitter.com/statuses/user_timeline/#######.rss)
and then have feedburner point to the script. Thanks to a suggestion I found here in another thread, I used Buzzboost in feedburner to limit the number of tweets :)
Title: Re: TWITTER! How Do I Tweet To The Portal?
Post by: G6Cad on September 27, 2009, 07:19:13 AM
Great, will set this topic to solved  :up: