Added login and relogin in posting activities

Bug with facebook post when not logged in: needs review