updated newpost and fully implemented facebook login