http://www.perlmonks.org?node_id=656347


in reply to WWW::Mechanize and Facebook login

Depending on the user agent you specify(1), Facebook's successful/failed login URLs can actually be the same, so you probably want to check the content of what was returned, rather than location.

    --k.


(1) See $mech->agent_alias('...') or the agent argument to WWW::Mechanize->new.