Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

facebook login button not showing up

Go to End

3 Posts   5289 Views


Community Member, 3 Posts

3 March 2010 at 8:58am


I'm fairly new to SilverStripe and have been learning the ropes for the past couple days. I am trying to port my existing site into my new SilverStripe site and am running into some annoying problems.

The old site was built around php facebook-connect and now in the new site I'm trying to simply get this FB login button to display on my index page:

<fb:login-button size="medium" background="light" length="long" onlogin="facebook_onlogin_ready();"></fb:login-button>

But nothing shows up! In my IndexPage page_controller init() method i have:

Requirements::customScript('FB.init("8763d5741c331101769c1e5129066211", "xd_receiver.php");');

and in my I have changed the top to:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xmlns:fb="">

Which *I think* is all I need to do according to this document:

Any insight as to why this login button is not appearing is greatly appreciated!



Community Member, 42 Posts

3 March 2010 at 2:44pm


try this

   FB.init("8763d5741c331101769c1e5129066211", "xd_receiver.php");


Requirements::customScript('FB.init("8763d5741c331101769c1e5129066211", "xd_receiver.php");'); 

good luck


Community Member, 3 Posts

4 March 2010 at 9:08am

Thank you for your reply, I ended up getting this to work and I wish I could explain how.

I think I might have just had some weird/bogus HTML in my .ss so it was messing it up some how.

Anyway, it works now.