I realized that in some certain cases when you use some third party extensions/modules which require "message categories" and you try to use them from console applications, the webapp will generate this error.
The solution is to add the component "i18n" to components in console.php file.
After I install your module (Yii2 Social) and follow setup on config. I got error when generate login button on view. the error is (Unable to locate message source for category ‘kvsocial’.)