fixing social network logins and refactoring post actions