Symfony2 - HWI/OAuthBundle can't find user provider

facebook, hwioauthbundle, symfony

Solution

Add to security.yml

providers:                             
    hwi:                               
        id: hwi_oauth.user.provider    

or your custom user provider service

Problem

Trying to connect facebook using `HWI/OAuthBundle`, following all of the steps that say in HWI/OauthBundle Doc, but it return error There is no user provider for user "HWI\Bundle\OAuthBundle\Security\Core\User\OAuthUser" Does anyone can explain for me why this happen and how to fix this problem?

Original source