开发者

Can't connect to Twitter API in AS3

开发者 https://www.devze.com 2023-01-08 00:30 出处:网络
I\'m trying to connect to the Twitter API via an AS3 app, but I keep getting Error #2032: Stream Error. URL: https://api.twitter.com/oauth/request_token

I'm trying to connect to the Twitter API via an AS3 app, but I keep getting

Error #2032: Stream Error. URL: https://api.twitter.com/oauth/request_token

When I try URLRequest("https://api.twitter.com/oauth") it at least loads something and calls my Event.COMPLETE listener. Can Flash just not connect to the Twitter API without a third-party? I have tried numerous AS3 OAuth packages and keep getting the same thing.

edit and I'm using Security.loadPolicyFile("http://www.twitter.com/crossdoma开发者_C百科in.xml");


It looks like Twitter restricts flash requests to originate from twitter.com. You should be able to run a proxy the request on your own server to bypass the restriction.

http://api.twitter.com/crossdomain.xml

http://groups.google.com/group/twitter-development-talk/browse_thread/thread/28232e3965222037

0

精彩评论

暂无评论...
验证码 换一张
取 消