Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Facebook Connect is Notworking ? My fault or it needs update?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 434 Views
  • DesignerX.com.au
    Avatar
    Community Member
    107 Posts

    Facebook Connect is Notworking ? My fault or it needs update? Link to this post

    Hi,
    I been trying to use the facebook connect module & it does not work ! . I got the button on the page, I can click login & I can login to facebook from my website BUT the data is not being stored in the data base nor the SS CMS recognizing the facebook login !

    I have the following in my _config file , but still no luck :
    FacebookConnect::set_api_key('api-key');
    FacebookConnect::set_api_secret('api-secret');
    FacebookConnect::set_app_id('api-id');
    FacebookConnect::set_create_member(true);

    If anyone can help me fix it will be great . Its the only module of its kind for SS

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Facebook Connect is Notworking ? My fault or it needs update? Link to this post

    I just pushed a couple fixes for it (https://github.com/willrossi/silverstripe-facebookconnect/commits/master) try that and see if that fixes it for you.

    And no it isn't the only module to do Facebook Connect. Simon_w has a oAuth / Facebook connect one which is better if you don't want to use the js sdk.

  • DesignerX.com.au
    Avatar
    Community Member
    107 Posts

    Re: Facebook Connect is Notworking ? My fault or it needs update? Link to this post

    i still get the same proble after downloading the new facebook Connect from the link you provided:

    I have added the following to the Page.ss

    <html lang="en" xmlns:fb="http://www.facebook.com/2008/fbml"> in the header

       <% if CurrentFacebookMember %>
          <p>Hi $CurrentFacebookMember.FirstName</p>
          <% include ConnectLogout %>
       <% else %>
          <% include ConnectLogin %>
       <% end_if %>

    I am still able to login to facebook from my website but the data is NOT in the databse !

  • DesignerX.com.au
    Avatar
    Community Member
    107 Posts

    Re: Facebook Connect is Notworking ? My fault or it needs update? Link to this post

    woow.. I got it working, I had problem with FacebookConnect::set_member_groups(array('forum', 'group2')); but i got it fixed ( was a typo)

    For anyone who is reading this, use FacebookConnect::set_member_groups(array('forum', 'group2')); or your members will have no group !

    TY so much for the quick fix , great modules ;)

    434 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.