Twitter login with Flex

24 views
Skip to first unread message

Jef

unread,
Nov 26, 2009, 8:27:11 AM11/26/09
to Twitter Development Talk
Hey guys

I'm building an application for a school project where I should be
able to do everything you can on Twitter.com, but make it accessible
on the desktop (AIR project)
But I have absolutely no clue how I can login as a user and update my
status. I've looked at the API documentation, but so far it's been
nothing but Chinese to me :P
Retrieving search information and other timelines is no problem
though, it's just the status update part that's been bothering me :D

I'd love to get some help on this.

Thanks in advance!

Jef

Raffi Krikorian

unread,
Nov 26, 2009, 8:50:48 PM11/26/09
to twitter-deve...@googlegroups.com

Wilfred yau

unread,
Nov 26, 2009, 9:31:38 PM11/26/09
to Twitter Development Talk
I think you are using Basic Auth to login, but it don't work well in
Flex,
you should try to use OAuth that have better support on Flex.

any you can use some library to help you finish the project:
http://code.google.com/p/tweetr/
http://code.google.com/p/oauth-as3/

sample code is including in the library.

Bardia Afshin

unread,
Nov 26, 2009, 10:19:14 PM11/26/09
to twitter-deve...@googlegroups.com, twitter-deve...@googlegroups.com
Is there a web page with a list of all the whitelisted IPs and twitter accounts?

Sent from my iPhone

Raffi Krikorian

unread,
Nov 26, 2009, 10:24:15 PM11/26/09
to twitter-deve...@googlegroups.com
No.

orian

unread,
Nov 30, 2009, 12:17:34 AM11/30/09
to Twitter Development Talk
As long as you are building an AIR app you are okay, but if you're
working in Flex and intending to put the result online somewhere, it's
not going to work. This is due to Twitter's unfortunate ongoing
blocking of Flash apps by using a restrictive crossdomain.xml policy.
There is no way right now for a Flash application to make requests of
anything other than the search API, unless you use a proxy, which is
very lame.

Here are some recent threads discussing crossdomain issues with the
API:
http://groups.google.com/group/twitter-development-talk/browse_frm/thread/d3230be66c27c88e/b25653be788942c9?lnk=gst&q=crossdomain#b25653be788942c9
http://groups.google.com/group/twitter-development-talk/browse_frm/thread/4adf2a0297ce052d/e6831b2340a30478?lnk=gst&q=crossdomain#e6831b2340a30478
http://groups.google.com/group/twitter-development-talk/browse_frm/thread/e35a708400b529b3/4eec7a31e269c030?lnk=gst&q=crossdomain#4eec7a31e269c030


On Nov 26, 9:31 pm, Wilfred yau <wld991...@gmail.com> wrote:
> I think you are using Basic Auth to login, but it don't work well in
> Flex,
> you should try to use OAuth that have better support on Flex.
>
> any you can use some library to help you finish the project:http://code.google.com/p/tweetr/http://code.google.com/p/oauth-as3/

Jef

unread,
Dec 3, 2009, 8:17:23 AM12/3/09
to Twitter Development Talk
Thanks a lot for your answers.
I've been looking into the Tweetr library and found an example to
login and send a Tweet. (this example:
http://tweetr.googlecode.com/svn/trunk/examples/flex/example_2.mxml)
However, if I click on the "send tweet" button while my username and
password are already given, I get a Windows Security Window asking for
them again.

Any idea how I can solve this?

Kind regards
Jef
Reply all
Reply to author
Forward
0 new messages