|
I have been attempting to send a WWW request to Twitter in order to post an update. I am sending it to the URL "http://" + username + ":" + password + "@twitter.com/statuses/update.json", with username and password set to an account name and password. However, the request returns an error - it says no crossdomain.xml file was found. However it does appear to exist (at http://twitter.com/crossdomain.xml) Does anyone know what the problem is here?
(comments are locked)
|
|
The crossdomain.xml that Twitter has on their site is:
So unless you access http://twitter.com from a Web player that is hosted from http://twitter.com, http://api.twitter.com, http://search.twitter.com or http://static.twitter.com (or *.twitter.com), it simply won't work. So, what you'll have to do to access Twitter from a Web player is to write a Web service that reads the data for you, hosted on your own server. Then, on that server, you can provide access via a crossdomain.xml that has your Web player location in the "allow-access-from"-list. So basically what you're saying is, normal people who don't have our own servers can't trivially post to twitter. :( Boooo.
Aug 07 '11 at 11:35 PM
Ipsquiggle
(comments are locked)
|
|
This is related to the new security model that was added to Unity 3.0. You can read more about it here: http://unity3d.com/support/documentation/Manual/Security%20Sandbox.html Basically in order for you to be able to access a resource on a server via Unity (in your case http://twitter.com), that server's crossdomain.xml would have to specify an all access '*' in order for the request to be successful via Unity.
(comments are locked)
|
