Urgent help needed with AddThis facebook share

dontaskdontget Jul 10, 2012 03:45PM EDT

I have a facebook share on my website that uses the share url of:

a href="http://www.facebook.com/sharer.php?u=*mydomain*/view-list/?ProfileID=<?php echo $_SESSION['ProfileID']; ?>"

I am trying to replace this with your addthis toolbar sharing the same url. To do this I have included og:url as recommended which reads:

<meta property="og:url" content="*mydomain*/view-list/?ProfileID=<?php echo $_SESSION['ProfileID']; ?>/" />

My original share link shares instantly with the correct details - the AddThis share takes on average well over 10 seconds to load and doesn't show the full title of the page - despite the urls shared being identical.

When using the AddThis share, the link you are directed to in the address bar is:

http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2F*mydomain*%2Fview-list%2F%3FProfileID%3D60%23.T_yFH9F94hM.facebook

If you remove '%23.T_yFH9F94hM.facebook' from the address bar you see exactly what I would expect to see and connects to facebook almost instantly...

I have used the facebook debug for the URL and all is ok.

1 Community Answers

Paul Jul 12, 2012 10:52AM EDT

You'll have to set the URL in the Facebook button or in the toolbox, like this:

<a class="addthis_button_facebook" addthis:url="mydomain/view-list/?profileID=<?php echo $_SESSION['ProfileID']; ?>"></a>

or this:

<div class="addthis_toolbox addthis_default_style " addthis:url="mydomain/view-list/?profileID=<?php echo $_SESSION['ProfileID']; ?>">


This question is closed to new answers.

Still need help?


General Topics

 

Developers