social_connect logout refactoring method