Stores mode in cookie, connects with facebook and uploads picture