refactor facebook/twitter config