Questions tagged [fosfacebookbundle]

The FOSFacebookBundle enables integration of the Facebook PHP and JS SDK's.

FOSFacebookBundle is a bundle for which helps you to integrate Facebook Platform to your application. It integrate both the PHP and JS SDK's.

You will, of course, need to create an application on the Facebook website first.

Use case

A quick application could replace the login system of your site using the Facebook login, as you can have on StackOverflow for example. The bundle use the default security system of Symfony 2.

Information

This bundle is maintain by a groups of developper called FriendsOfSymfony (from which the FOS inside the bundle name comes).

43 questions
5
votes
1 answer

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

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…
Burgi
  • 1,385
  • 9
  • 13
5
votes
2 answers

SessionHandler::write(): Parent session handler is not open

I'm using FOSFacebookBundle in Symfony 2.3 as it says in the Integration with FOSUserBundle documentation. And edited security.yml, ran the code but I got the error: Warning: SessionHandler::write(): Parent session handler is not open in…
4
votes
1 answer

FOSFacebookBundle + FosUserBundle Email exist in the BDD

I have a special use case I can not solve. When the user click on Facebook Connect and find an similar email in my DB. I want to ask the user if the account belongs to him. If the answer is yes, he needs to connect with his account and then add the…
JeremyP
  • 575
  • 1
  • 9
  • 20
3
votes
2 answers

Symfony | FOSRestBundle with FOSFacebookBundle

I have a symfony app which serve a RESTful API(for mobile app) and have backend administration. I can succesfuly login to the backend via facebook, but how should I allow loggin via the RESTful API?
3
votes
1 answer

Custom Facebook FOSFacebookBundle Login Button

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.
Uub
  • 135
  • 1
  • 8
2
votes
1 answer

Integrate FosFacebookBundle without FosUserBundle

is it possible to integrate fosfacebookbundle without fosuserbundle I find this Documentation but it's not clear FOSFacebookBundle Anyone can help me to do it buy giving me the steps to integrate fosfacebookbundle
mehdiraddadi
  • 105
  • 1
  • 1
  • 4
2
votes
1 answer

FOSFacebookBunlde throws "Notice: Array to string conversion in vendor\doctrine\dbal\lib\Doctrine\DBAL\Statement.php line 103" exception

Since I updated from symfony 2.0 to 2.1 I cannot login via Facebook. Symfony redirects me to my login page and displays this error: Notice: Array to string conversion in vendor\doctrine\dbal\lib\Doctrine\DBAL\Statement.php line 103 You can see my…
Wojciech Jasiński
  • 1,480
  • 2
  • 20
  • 42
2
votes
1 answer

FOSFacebookBundle Redirection Issue

I have some troubles using FOSFacebookBundle with FOSUserBundle for make a subscribtion by Facebook on my website... There is my code: base.html.twig: function…
Modnar
  • 21
  • 1
2
votes
1 answer

Error on JS for FOSFacebook Bundle 2.0

I try to install FOSFacebook, I have follow all the steps, but i got this error in js console: Uncaught ReferenceError: onFbInit is not defined I have include this lignes in my base.html.twig: {{…
2
votes
1 answer

FOSFacebookBundle breaks "remember me" of FOSUserBundle

Problem: We have been using the FOSUserBundle for Symfony2, and all works fine, including the "remember me". We recently introduced FOSFacebookBundle. Since then the "remember me" for "normal" login is broken. For example: When we use ONLY FosUSer…
1
vote
2 answers

Symfony2 - FOSFacebook Bundle - Subdomain

So I've mangaged to get the FOSFacebook bundle integrated into my app alongside the FOSUser bundle. Now it's working properly on my dev server minus a few bugs but it works. UPDATE: So for some reason facebook is setting the cookie to mysite.com.au…
CriticalImpact
  • 690
  • 4
  • 12
1
vote
1 answer

OAuthServer and third Party OAuth Provider

I am currently changing my plain Symfony2 WebApplication to an Ember.js Frontend with an REST Api powered by S2 Backend. In my Old solution I had FOSUserbundle for regular registration / login etc. and HWIOAuthBundle for Facebook login. Now I am…
1
vote
3 answers

Twig template external url img

I am trying to display image from facebook profile. routing.yml _graph_facebook: path: graph.facebook.com/{fbId}/{var} requirements: _scheme: https template.html.twig What I get is…
Dalli
  • 64
  • 2
  • 11
1
vote
2 answers

AuthenticationSuccessHandler and redirect after login

i am trying to implement a redirect after login in my symfony2 application in order to redirect if my user has one attribute or not. I've created the class AuthenticationSuccessHandler.php inside Handler Folder in my project: namespace…
walolinux
  • 531
  • 1
  • 6
  • 20
1
vote
3 answers

FOSFacebookBundle Cannot import resource routing

I'm trying to merge FOSFacebookBundle and FOSUserBundle. FosUserBundle alone is working perfectly but when i trying integrate facebookbundle with him im getting route error.I'm using Symfony 2.3.4 Cannot import resource …
1
2 3