FriendsOfSymfony / FOSFacebookBundle

NOT MAINTAINED - see https://github.com/hwi/HWIOAuthBundle
322 stars 140 forks source link

Use FOSFacebook as login in webapplication #309

Open avdarie opened 10 years ago

avdarie commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

@avdarie @fimak you solved you problem?