I am programmatically creating test accounts, and then immediately trying to log in w/ them using a selenium driven browser. Unfortunately, the browser is just redirected t
Visit Facebook home page before trying to visit login url:
visit "https://www.facebook.com" visit @fake_user.login_url
I haven't checked the headers, but I guess Facebook sets some cookies that are needed to log in.