mirror of
https://github.com/FriendsOfSymfony/FOSFacebookBundle.git
synced 2026-03-24 08:42:33 +01:00
I am obligated to login in my web #116
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Chrysweel on GitHub (Oct 15, 2012).
This bundle works it. But I am obligated to login from my web.
I log in page of facebook, but when I visit my web, the button login knows that I am connected in facebook, because the button says "logout", but I can't access my page private with role ROLE_FACEBOOK.
I have to do logout in facebook and connect from my buttom facebook.
Why ??
@diegoholiveira commented on GitHub (Dec 28, 2012):
What is happen is that Facebook JS SDK knows that are you logged, but your symfony 2 application don't know notting about it. Force the user to be redirect to the check_path (defined on your security.yml).
@Chrysweel commented on GitHub (Jan 28, 2013):
@diegoholiveira
Thanks for to reply.
Still could not solve the problem.
This my security.yml
And my config.yml
Can you help me ?
@diegoholiveira commented on GitHub (Jan 28, 2013):
Did you follow this instruction?
https://github.com/FriendsOfSymfony/FOSFacebookBundle/blob/master/Resources/doc/1-basic-usage.md#include-the-login-button-in-your-templates
If you follow it, then post on gist.github.com your javascript that defines
the integration between JS and SF2, and then post the link here.
On Mon, Jan 28, 2013 at 5:39 PM, Chrysweel notifications@github.com wrote:
@Chrysweel commented on GitHub (Jan 28, 2013):
Yes @diegoholiveira I followed it.
I have two url for check:
/login_check the route for default of FOSUserBundle
and /login_check_fb the route for FOSFacebookBundle.
Because If I use the same url for check, so I am in facebook or in my web doesnt it?
But I want be able to keep in both web
In my template I have :
My routing.yml
Any idea?
@diegoholiveira commented on GitHub (Jan 28, 2013):
Did you check the log file?
Diego Henrique Oliveira
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Monday, 28 de January de 2013 at 19:21, Chrysweel wrote:
@Chrysweel commented on GitHub (Jan 29, 2013):
@diegoholiveira sorry for slow to respond
Yes I checked the log file and it seems all correctly.
I included console.log() in the javascript code:
And I doesnt see the text in the log, I am logged to facebook...
Any idea?
@Chrysweel commented on GitHub (Jan 30, 2013):
I don't find the error.
Can @diegoholiveira show me the configuration correctly for this issue please?