Closed pedrotypes closed 10 years ago
On a side note, I recommend you to use https://github.com/hwi/HWIOAuthBundle to provide Facebook login on your site instead of FOSFacebookBundle. The implementation is cleaner and nobody in FOS is actively using this bundle anymore (the Facebook SDK used by this bundle is responsible of lots of issues, and we already had to rewrite half of it to make it use the Symfony sessions properly...)
@stof having further studied this issue, I see you're right. Sorry for jumping the gun on the PR and thanks for the suggestion. Cheers!
Given that the class needs to manage users, this change is wrong (you will get fatal errors). It will not be able to create new users if it receives only a UserProvider.
What is deprecated in FOSUserBundle is using the UserManager as a Security UserProvider. The proper fix is to update the example implementation of the FacebookProvider to stop relying on the fact that the user manager was also a user provider and use only the public API of the user manager.