View Full Version : RSS from twitter - help desperately needed!
rebelsoul2005
March 26th, 2008, 02:09 PM
Hi guys, its been a while since I was last on here and i desperatley need some help!
About 6 months back I built a Twitter badge that brought in the rss feed from a particular user and displayed the most recent entry, it has been working fine...until now!
Basically if I hit ctrl+Enter it runs perfectly, displaying the feed as it should. As soon as this is exported and viewed thru a browser, it cannot find the feed. I have tested this on 2 seperate sites running on 2 seperate servers and still nothing!
How can it be that it can access a URL within the Flash IDE but not on a site?
Can anyone shed any light on this?
Anogar
March 26th, 2008, 02:28 PM
Twitter must have changed their Crossdomain XML policy. Flash has security features in place that prevent you from pulling XML off other people's domains (RSS is a form of XML) unless they explicitly allow it with a crossdomain.xml file that includes your domain, or open access. This is Twitter's file:
http://twitter.com/crossdomain.xml
Looks like no luck for you unless you get hosted on Twitter or DiscoveringRadience. :(
This is what you want the file to look like for open access:
http://www.weather.gov/crossdomain.xml
Ah, here's some info:
Yes, we changed crossdomain.xml in response to a security threat last
night. Unfortunately, do to an insecure interaction between Flash and
browsers, allowing cross-domain requests from any domain opens us to
assumed login attacks, which a Japanese security researcher had noted
publicly in the last 48 hours.
I didn't alert the list because we wanted to observe the behavior of
some of our Flash assets after the change, and so the current contents
of crossdomain.xml are not yet concrete. If anyone has suggestions
for a crossdomain.xml that's both secure and useful to Flash
developers, please let the list know.
rebelsoul2005
March 28th, 2008, 07:50 AM
many thanks for the response - a colleague of mine actually pointed me to http://hastalasiesta.org/index.php?/categories/1-Flash-Actionscript just after I posted here.
Looks like i will have to rebuild in a different language as the only work around for this is to use a php fix to get the XML into flash, unfortunately our servers dont support php!
Oh well...
Hastalasiesta
March 28th, 2008, 09:09 AM
I'm sure this could be achieved by using ASP / .net or virtually any other language.
I only used PHP because I'm on a Apache server and because I have a marginally better understanding of PHP than those other languages.
Hastalasiesta
March 28th, 2008, 11:04 AM
Ok. Here's a better solution for you. (Snipped from my blog).
Ok. Some of you might not want to or be able to put this PHP-script on your server. Here's the best solution I can find. Go to this Yahoo Pipe (http://pipes.yahoo.com/pipes/pipe.info?_id=4b85031723ba7785e277add01b0169c5). Put in your user ID and subscribe to the resulting RSS feed. Presto! (Yahoo Pipes is a tool for manipulating and creating mash-ups of data from services like twitter, flickr etc.)
Hope that solves the issue for you. :)
rebelsoul2005
April 9th, 2008, 07:11 AM
Ok. Here's a better solution for you. (Snipped from my blog).
Ok. Some of you might not want to or be able to put this PHP-script on your server. Here's the best solution I can find. Go to this Yahoo Pipe (http://pipes.yahoo.com/pipes/pipe.info?_id=4b85031723ba7785e277add01b0169c5). Put in your user ID and subscribe to the resulting RSS feed. Presto! (Yahoo Pipes is a tool for manipulating and creating mash-ups of data from services like twitter, flickr etc.)
Hope that solves the issue for you. :)
Hi Hastalasiesta! Sorry for not getting back to you sooner, I have been working on projects for other clients and it totally slipped my mind that I had posted here!! The pipes solution looks like a good one to me... I will let you know how I get on!
Cheers!
rebelsoul2005
April 9th, 2008, 08:25 AM
Hmmm...I have tried this and still nothing. Within the Flash IDE everything is rosey but it still will not load the feed when I access it through the site.
Anogar
April 9th, 2008, 08:36 PM
Ok. Here's a better solution for you. (Snipped from my blog).
Ok. Some of you might not want to or be able to put this PHP-script on your server. Here's the best solution I can find. Go to this Yahoo Pipe (http://pipes.yahoo.com/pipes/pipe.info?_id=4b85031723ba7785e277add01b0169c5). Put in your user ID and subscribe to the resulting RSS feed. Presto! (Yahoo Pipes is a tool for manipulating and creating mash-ups of data from services like twitter, flickr etc.)
Hope that solves the issue for you. :)
That still doesn't have a crossdomain.xml - and if he's going to pull it with server-side scripting and then pass it to the SWF anyway, he might as well just do it with the original Twitter feed.
That's a great application though. :)
edit: I stand corrected! You just need to change the url from yahoo.com to yahooapis.com and you have full access. Awesome.
http://blog.pipes.yahoo.com/2007/03/10/pipes-adds-flash-developer-support/
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.