fosfacebookbundle

Symfony2: unable to impersonate user when website log-in using two different user providers

对着背影说爱祢 提交于 2020-01-05 04:44:51
问题 In my website user can log-in with simple account (created in my website, configured MY_OWN_USER provider, which selects user by email) or using facebook log-in (integrated through fosfacebook bundle). When i'm trying to impersonate user (appending link '...?_switch_user=demo@demo.com', like described in Symfony2 documentation) Symfony2 logs such warning: security.WARNING: Switch User failed: "The user is not authenticated on facebook" I've checked Symfony\Component\Security\Http\Firewall

Symfony2: unable to impersonate user when website log-in using two different user providers

。_饼干妹妹 提交于 2020-01-05 04:44:12
问题 In my website user can log-in with simple account (created in my website, configured MY_OWN_USER provider, which selects user by email) or using facebook log-in (integrated through fosfacebook bundle). When i'm trying to impersonate user (appending link '...?_switch_user=demo@demo.com', like described in Symfony2 documentation) Symfony2 logs such warning: security.WARNING: Switch User failed: "The user is not authenticated on facebook" I've checked Symfony\Component\Security\Http\Firewall

Custom Facebook FOSFacebookBundle Login Button

时间秒杀一切 提交于 2019-12-21 20:24:33
问题 some one know how custom/change image of FosFacebook login button ? {{ facebook_login_button({'autologoutlink': true}) }} And redirect on a full page facebook login not on pop-up. 回答1: This uses a twig helper and render a template with '' notation using facebook sdk js. If you need to redirect to the login-page, use an html link, call the method 'getLoginUrl' from the php facebook sdk You can access to it via the service 'fos_facebook.api' register through FOSFacebookBundle Updated with code

FOSFacebookBundle error after login The controller must return a response (null given)

爱⌒轻易说出口 提交于 2019-12-13 03:08:49
问题 I am using Symfony FOSUserBundle, SonataUserBundle, FOSFacebookBundle. I have added login button to my app. I am able to login using facebook but after login the page redirects to demo/secured/login_check and I get the below error. "The controller must return a response (null given). Did you forget to add a return statement somewhere in your controller?" I already had look at Service not triggered : The controller must return a response (null given) https://github.com/FriendsOfSymfony

Service not triggered : The controller must return a response (null given)

我的未来我决定 提交于 2019-12-11 11:06:19
问题 Hi everyone and huge thanks for the help, I am trying to get FOSFacebook work, but it seems to be impossible until now. I tried a lot of configuration, and a lot of fix but nothing worked for me. Here is my configuration : security.yml chain_provider: chain: providers: [fos_userbundle, fos_facebook_provider] fos_userbundle: id: fos_user.user_provider.username fos_facebook_provider: id: fos.facebook.custom_provider firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false

Symfony2 - how to extend a vendor bundle (e.g. of FOSFacebookBundle)

做~自己de王妃 提交于 2019-12-06 04:53:15
问题 Scenario: I'm using a bundle (FOSFacebookBundle) that allows me to set parameters for exactly one facebook app in my configuration. Everything works perfectly fine, but now I need to set not only one app, but multiple. My approach: I've created a AcmeFacebookBundle, which allows multiple apps to be defined (configuration defined in Acme\FacebookBundle\DependencyInjection\Configuration ) in an array like so: acme_facebook: apps: some_competition: server_url: %acme.facebook.some_competition

Custom Facebook FOSFacebookBundle Login Button

女生的网名这么多〃 提交于 2019-12-04 12:53:44
some one know how custom/change image of FosFacebook login button ? {{ facebook_login_button({'autologoutlink': true}) }} And redirect on a full page facebook login not on pop-up. This uses a twig helper and render a template with '' notation using facebook sdk js. If you need to redirect to the login-page, use an html link, call the method 'getLoginUrl' from the php facebook sdk You can access to it via the service 'fos_facebook.api' register through FOSFacebookBundle Updated with code examples Here is the javascript code i use to login with facebook 'frictionless' <script> //scopes string

Symfony2 - how to extend a vendor bundle (e.g. of FOSFacebookBundle)

陌路散爱 提交于 2019-12-04 07:44:22
Scenario: I'm using a bundle (FOSFacebookBundle) that allows me to set parameters for exactly one facebook app in my configuration. Everything works perfectly fine, but now I need to set not only one app, but multiple. My approach: I've created a AcmeFacebookBundle, which allows multiple apps to be defined (configuration defined in Acme\FacebookBundle\DependencyInjection\Configuration ) in an array like so: acme_facebook: apps: some_competition: server_url: %acme.facebook.some_competition.server_url% file: %kernel.root_dir%/../vendor/facebook/php-sdk/src/base_facebook.php alias: facebook app