FriendsOfSymfony/FOSFacebookBundle — pull request #75 by pierroweb (2011-11-09 00:47:01+00:00)
Title: refreshUser method in FacebookProvider : There is no user provider for user "Acme\DemoBundle\Entity\User"

There is no user provider for user "Acme\DemoBundle\Entity\User".

After following all the instructions from FOSUserBundle and FOSFacebookBundle to set up an external facebook auth that triggers symfony security mechanism, I ended up with the error :

> There is no user provider for user "Acme\DemoBundle\Entity\User".

when accessing /login_check (redirected from facebook.com)
The exception was thrown in the refreshUser method.

It seemed that at this point, $user had a username but no facebookId. Adding the proposed line solves the issue.
(but is it the good way to solve it ?...)