Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Use FOSFacebook as login in webapplication #309

Open
avdarie opened this issue Feb 6, 2014 · 4 comments
Open

Use FOSFacebook as login in webapplication #309

avdarie opened this issue Feb 6, 2014 · 4 comments

Comments

@avdarie
Copy link

avdarie commented Feb 6, 2014

Hi,
I test fos_facebook and fos_user but I was unable to configure both as login in my webapp. How can use both fos_user and fos_facebook for login. They work but I can login in my app only with fos_user. It's like FOS_USER does not know that FOS_FACEBOOK is logged. FOS_USER is connected with FOS_FACEBOOK.

In my case it happens ::

Login through FOS_Facebook --> No Access webbapp ( say log in as Anon.) but log in on facebook works
Login through FOS_user --> Access webbapp (with groupgrant USER) --> Works OK!

I need one workflow some:

Login through FOS_Facebook --> Access webbapp (with groupgrant USERFACEBOOK) *** This option is implemented ??

Login through FOS_user --> Access webbapp (with groupgrant USER) --> WOrKS!

User with Fos_user account and facebook account have access --> Access Webbapp (with groupgrant USERFACEBOOK and USER ) *** This option is implemented ??

If this options is not implemented maybe I can implement this because I need this.

thanks !

@diegoholiveira
Copy link

What you need to do is implement two user providers, one for each option. Also, you need to send each login option to your own URL:
facebook -> /login-facebook
form -> /login

@avdarie
Copy link
Author

avdarie commented Feb 7, 2014

Have two user providers. The problem is When i'm login in FOS_FACEBOOK, FOS_USER is not logged say is ANONYMOUS user I need loggin througth FOS_USER too. My questions is if have integration both bundle If exist how configure this ?

@fimak
Copy link

fimak commented Feb 17, 2014

I have the same problem, I use FOSUserBundle and FOSFacebookBundle together. I set them abiding by official documentation.
When I log in using the facebook button I didn't authorised on my site.
http://stackoverflow.com/questions/21773579/symfony2-unable-to-find-the-controller-for-path-login-check

@mappedinn
Copy link

@avdarie @fimak you solved you problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants