WordPress, Simple Facebook Connect, and Share button not showing

Problem: Facebook share button will not show up using WordPress 3.0.1 and Simple Facebook Connect. I tried this with themes Twenty Ten, Twenty Ten Weaver, and an old pre-3.0 default theme based on Kubrick. Your problem may not be with WordPress or the plugin.

First off, this is what I did:

  • Set up my Facebook application
  • Installed the Simple Facebook Connect plugin
  • Activated plugin “Simple Facebook Connect – Base”
  • Configured the plugin with the Facebook API key, Facebook Application Secret, and Facebook Application ID I got from setting up the Facebook app
  • Activated the plugin “SFC – Like Button”
  • Activated the plugin “SFC – Share Button”

The site showed the Facebook Like button but would not show the Facebook Share button. If you viewed the page source, the html xfbml code was present. This really threw me!

Finally, after much unproductive searching on the web, I used the Firefox Firebug add-on to see if I could find out anything. As a part of the page makeup I saw an iframe with an error about a url not being present. Since I had just recently set up the Facebook application, something clicked in my memory. When you are logged in to Facebook to see your application, under “Edit Settings” and then “Website” there are two settings, “Site URL” and “Site Domain”. I had set up the “Site URL” with “http://www.mysite.com/” and I did not have anything entered in the “Site Domain” field.

“Site URL” is your site’s address, simple enough. However, I entered it with the preceding “www” and my WordPress blog lists all my pages as “http://mysite.com” – without the “www” at the beginning. Guessed it yet?

If you look at the help text to the side of the “Site Domain” field, it says, “If set, Facebook will enable authentication on all subdomains (e.g., “example.com” will enable *.example.com)”.

So, I set “Site URL” to “http://mysite.com/” and set “Site Domain” to “mysite.com”.

I refreshed my blog and, voila! The Facebook Share button was now showing.

I realize that Facebook changes the specs and their edit screens for logging in and editing your applications often, but I hope the basic logic of this post is still helpful if you have this problem. Please leave a comment if this helped you out, or if there is anything additional to add. If I’m still set up with a Facebook Like, show me some love. 😉

This entry was posted in Blogging, Computers & Internet. Bookmark the permalink.

3 Responses to WordPress, Simple Facebook Connect, and Share button not showing

  1. Kine says:

    You are such a life saver to post this!

  2. billy says:

    Agreed. I should have commented back when i originally used your solution because it worked for me. Unfortunately, it is doing it again though and this isn’t the problem this time.

  3. Scott says:

    IMPORTANT NOTE — I never got the Simple Facebook Connect plugin to work to my liking. I posted on the author’s site but never received an answer to my questions. I deleted the plugin and switched to the “AddThis Social Bookmarking Widget” and am very happy with it. There is some negative commentary about it out there so go do some research. Nothing I read was enough to dissuade me from using it. You can have it set up and running, quite literally, within minutes.

Comments are closed.