Change in URL for social networking I am using Drupal for running a website. I have integrated the "Share bar" module to share the current page in social networking sites. I know from the plugins code of Facebook that the share count of the website is 200+ But the share bar module shows only 20+ count.



I could find out what the problem is, the code for sharebar is:

&lt;div id="fb-root"&gt;&lt;/div&gt; &lt;script&gt;(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));&lt;/script&gt; &lt;html xmlns:fb="http://ogp.me/ns/fb#"&gt; &lt;fb:like href="[url]" send="true" layout="box_count" width="450" show_faces="true"&gt;&lt;/fb:like&gt;


In the code above, [url] token actually gives out http://www.indiansnakes.org/frontpage instead of http://www.indiansnakes.org. I think the [url] token refers to hyperlink before redirection is completed. 

How can I modify the script above so that I get the count for www.indiansnakes.org instead of www.indiansnakes.org/frontpage
Looking at the source code on your live site, I see that the code for the fb:like section becomes:

&lt;fb:like href="http://indiansnakes.org/frontpage" send="true" layout="box_count" width="450" show_faces="true"&gt;&lt;/fb:like&gt;


...so I assume [url] is a token. Assuming that's true, I'd recommend using a more specific URL token.