Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6166025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:16:07+00:00 2026-05-23T22:16:07+00:00

On my blog I have a global Like button in the header embedded with

  • 0

On my blog I have a global “Like” button in the header embedded with this code:

<div id="fb-root"></div><fb:like href="http://www.domain.com/blog/" send="false" layout="button_count" width="120" show_faces="false" font="arial"></fb:like>

This shows up on every page of the site. In addition, I’ve got “Like” buttons for each post that appears on the site using this code:

<div id="fb-root"></div><fb:like href="http://www.domain.com<? the_permalink() ?>" send="false" layout="box_count" width="55" show_faces="false" font="arial"></fb:like>

In the <head> of all pages I include the Facebook script (I replaced my app ID with X’s here):

<script src="http://connect.facebook.net/en_US/all.js#appId=XXXXXXXXXXXXXXX&amp;xfbml=1"></script>

The buttons are working perfectly well, but I’m trying to interaction with these buttons and can’t seem to get any feedback with any but the first (global) button. In a scripts.js file loaded at the bottom of the page I have this snippet of code for the tracking:

FB.Event.subscribe('edge.create', function(targetUrl) {
    console.log(targetUrl);
    //_gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);
});

Only the first, global “Like” button will print the targetUrl to the console. The others on the page don’t print anything to the console.

What am I doing wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:16:09+00:00Added an answer on May 23, 2026 at 10:16 pm

    If your site is still in the works, are your posts’ URLs live on the Web? If not, that would explain your problem. Like Buttons only work correctly for URLs that Facebook can reach. If you’re testing on a staging server, be sure that the Like Buttons are set to Like your staging URLs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have blog data like: This is foreign <a href=xyz.com>link</a>, this is my site's
I have a blog installed in www.foo.com/wp/ and would like all requests that go
On my Blogger Blog I have this code in the template <b:if cond='data:blog.pageType ==
i am using code this blog to have a draggable list. This tutorial is
I'm new at Drupal. my url is like www.blabla.com/drupal/blog/ I have some blocks that
I have a configuration of a blog factory like this : - blogcrea.com/a-blog/ ->
I have this piece of code I found on some blog, that's supposed to
I have blog comment forms in Django and I would like to know the
This may sound stupid....I've followed Scott Morrisons Blog and have implemented a silverlight datagrid
* edit have fixed this code - see inline comments marked EDIT * I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.