{"id":6779,"date":"2014-04-23T04:01:26","date_gmt":"2014-04-23T04:01:26","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/problem-about-fosfacebookbundle-collection-of-common-programming-errors\/"},"modified":"2014-04-23T04:01:26","modified_gmt":"2014-04-23T04:01:26","slug":"problem-about-fosfacebookbundle-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/problem-about-fosfacebookbundle-collection-of-common-programming-errors\/","title":{"rendered":"problem about fosfacebookbundle-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/yFxyr.jpg?s=32&amp;g=1\" \/><br \/>\nKunwar Siddharth Singh<br \/>\nphp facebook symfony2 fosuserbundle fosfacebookbundle<br \/>\nI&#8217;m trying to use FOSFacebookBundle in Symfony 2.3 as it says in https:\/\/github.com\/FriendsOfSymfony\/FOSFacebookBundle\/blob\/master\/Resources\/doc\/2-integration-with-fosuserbundle.md but I always get the error: Can&#8217;t solve Fatal error: Class My\\UserBundle\\Security\\User\\Provider\\FacebookProvider&#8217; not found in app\/cache\/de_\/ap_DevDebugProjectContainer.phpI have tryed multiple things, but can&#8217;t find what it is wrong.My code sample-Security.ymlsecurity: encoders:FOS\\UserBundle\\Model\\UserInterface: sha<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/aee3b44e5f0b4dfa0e2da672897b3751?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nj0k<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/21387fbefd1625a9ebe359e307b55098?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nElnur Abdurrakhimov<br \/>\nfacebook symfony2 fosuserbundle fosfacebookbundle<br \/>\nHi 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.ymlchain_provider:chain:providers: [fos_userbundle, fos_facebook_provider] fos_userbundle:id: fos_user.user_provider.username fos_facebook_provider:id: fos.facebook.custom_providerfirewalls:dev:pattern: ^\/(_(profiler|wdt)|css|images|js)\/security: falsemain:pattern: ^<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/034e7b8661aa6e0a2f799e32891a592d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMuhammad Umair<br \/>\nsymfony2 fosfacebookbundle<br \/>\nI am using Symfony2 with FOSFacebookBundle for facebook login it works fine on major times but some times it didnt create a session and redirect me to home page when i debug it from class facebookProvider it gives me following error when i print session :object(Symfony\\Component\\HttpFoundation\\Session)[147]protected &#8216;storage&#8217; =&gt; object(Symfony\\Component\\HttpFoundation\\SessionStorage\\NativeSessionStorage)[146]protected &#8216;options&#8217; =&gt; array (size=5)&#8217;lifetime&#8217; =&gt; int 0&#8217;path&#8217; =&gt; string &#8216;\/&#8217;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cfbc285474170a022da58d19fa5472cf?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nModnar<br \/>\nfacebook symfony2 fosuserbundle fosfacebookbundle<br \/>\nI have some troubles using FOSFacebookBundle with FOSUserBundle for make a subscribtion by Facebook on my website&#8230;There is my code:base.html.twig: &lt;html xmlns:fb=&#8221;http:\/\/www.facebook.com\/2008\/fbml&#8221;&gt;&lt;!&#8211; TEMPLATE STUFF &#8211;&gt;function goLogIn(){alert(&#8216;enter goLogin function&#8217;);window.location = &#8220;{{ path(&#8216;_security_check&#8217;) }}&#8221;; }function onFbInit() {alert(&#8216;enter onFbInit&#8217;);if (typeof(FB) != &#8216;undefined&#8217; &amp;&amp; FB != null ) {FB.Event.subscribe(&#8216;auth.statusChange&#8217;, function(response) {al<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kunwar Siddharth Singh php facebook symfony2 fosuserbundle fosfacebookbundle I&#8217;m trying to use FOSFacebookBundle in Symfony 2.3 as it says in https:\/\/github.com\/FriendsOfSymfony\/FOSFacebookBundle\/blob\/master\/Resources\/doc\/2-integration-with-fosuserbundle.md but I always get the error: Can&#8217;t solve Fatal error: Class My\\UserBundle\\Security\\User\\Provider\\FacebookProvider&#8217; not found in app\/cache\/de_\/ap_DevDebugProjectContainer.phpI have tryed multiple things, but can&#8217;t find what it is wrong.My code sample-Security.ymlsecurity: encoders:FOS\\UserBundle\\Model\\UserInterface: sha j0k Elnur Abdurrakhimov [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6779","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6779"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6779\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}