質問

I try to use FOSFacebookBundle & FOSUserBundle.
It set up as the manual.
An error does not come out.


A user registration, login, logout of FOSUserBundle was success.
And invitation registration was added.

It is normal so far and I understand operation and processing.


And I try to add FOSFacebookBundle.
It set up as the manual.
An error does not come out.
Pop-up is displayed from a login button and login of facebook is successful.

I do not understand the action and processing after here.


If it has succeeded, is a user added to a database?

If it has succeeded, does "isGranted" work?

if ( $this->container->get('security.context')->isGranted('IS_AUTHENTICATED_REMEMBERED') ) {
    // ...
}

So, facebook login is successful from my site.
However, on my site, it does not have influence of what.
The login state via Facebook cannot be handled.

There is no error.
How do I handle a user in a controller?
Where should be checked?
Since an error is not displayed, there is no telling where a problem should be investigated from.

役に立ちましたか?

解決

Did you check your database ? Normally you should have a new user with a ROLE_FACEBOOK. If you can understand french, you should take a look here.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top