Like button does not appear after following README.txt instructions.

I read the README.txt from start to finish. I read the troubleshooting guide.

Instructions:

To quickly confirm that XFBML tags now work, place this markup in a page node (or block) on your website. In the body field type in the code shown here:

<fb:like></fb:like>

  1. Followed the Installation in the downloaded Readme, same as http://drupal.org/node/923804
  2. Edited my settings.php as per instructions. Did not add the "more options for your settings.php" code.
  3. Created an Unfiltered/Unprocessed HTML with Admin access
  4. Added the<fb:like></fb:like> code to a block, put the block in the content region of my Zurb Foundation subtheme.
  5. No Like button appears. I expected a Like button.

I confirmed these appear in view source:
xmlns:fb="http://www.facebook.com/2008/fbml
<fb:like></fb:like>

This does not appear in view source:
http://connect.facebook.net/en_US/all.js

  • Drupal for Facebook Devel reports "No worries" in Status.
  • Nothing shows in the log but some errors from fb_devel because I didn't have fb_app enabled. I enabled fb_app.
  • I did have fb_autopost installed and enabled before I read it might conflict. I disabled it and uninstalled it.
  • Using the two-part code from https://developers.facebook.com/docs/reference/plugins/like/ does work. I deleted the code from my HTML after experimenting.
  • I re-read README.txt. Rebuilt my caches, turned caching off, ran all update scripts, checked the list on potential conflicting modules. I do not have Global Redirect.
  • I am not using clean urls, but the docs say I don't need to unless I am running an app.

Still no Like button.

I'm stumped!

Comments

slamorte’s picture

Issue summary: View changes

added cache disabled

Dave Cohen’s picture

Maybe your theme is not including the page footer. Briefly try bartik theme and see if that works.

jaypan’s picture

I also cannot get the like button to appear. I have read through the whole README.txt multiple times. Here is some info:

1) All the following appear in my source:

xmlns:fb="http://www.facebook.com/2008/fbml
<fb:like></fb:like>
http://connect.facebook.net/en_US/all.js

2) I have disabled any other facebook modules
3) I disabled globalredirect
4) I only have the fb.module and fb_devel.module enabled (from this suite of modules)
5) I have tried changing the theme to bartik - didn't help
6) The output from the devel block is as follows:

Page Status = Not a canvas page.
local user = Jay
fb_get_fbu =
base_url = http://enstaging.example.com
base_path = /
url() returns = http://enstaging.example.com/
current_path = user/4
arg(0) is = user
arg(1) is = 4

(Note: URLS changed to example.com)
7) I'm using version 3.2.2 of the facebook SDK

I don't know what else to try. I've tried everything in the README as best I could. I've disabled as many modules as I could. The code is showing up in the HTML, as are the scripts.

I don't know what else to try. Help please!

jaypan’s picture

Well, scratch that, it works. I was having a momentary attack of stupidity - I've got facebook blocked in my browser using a script blocker, so of course it won't work. Allowing facebook through solved the problem.

jaypan’s picture

Issue summary: View changes

more info added

jaypan’s picture

Status: Active » Fixed
yan’s picture

Haha, same as #3, thanks for the hint.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.