The resources_owners
section of the firewall in security.yml must also be configured to avoid that error.
firewalls:
main:
oauth:
resource_owners:
facebook: "/login/check-facebook"
twitter: "/login/check-google"