URL is null

jozzhart Feb 13, 2012 02:28PM EST

Hello,

I've added the standard addthis code snippet, as I have for several other sites. But on this particular site, when the buttons are clicked, the url is passing NULL, and breaking the link.

This is the site: http://www.ecehh.org/

Here is a screen grab showing null in the URL.
http://www.ecehh.org/addthis.png


I've checked the pages for script errors and there are none.

I've checked another website I've built that uses it, and it working fine with pretty much identical code.

Thanks,
Jozz

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Feb 13, 2012 05:22PM EST
Facebook doesn't work like the other AddThis buttons. Instead of accepting parameters that we pass it, Facebook requests the URL you're sharing and gets the data it displays from the meta and link tags in the header. To control how your page is shared on Facebook you should use OpenGraph tags which are described in Facebook's documentation here: http://developers.facebook.com/docs/opengraph/

I think the problem is that your canonical link is set to // instead of the URL of the page to be shared.
Up 1 Rated Down
jozzhart Feb 14, 2012 04:17AM EST
Thank you Paul,

Well spotted on the canonical link being //. I fixed this and everything works fine.


Thank you for your prompt and accurate reply,
Jozz

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers