Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I try to share a link to my website on Facebook but the get parameter is trimmed. I make the share button like this:

 <a name="fb_share" type="button" share_url="http://www.site.com/page/?key=4v56dfv456sdfv456s" >Share on facebook</a> 
 <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

The share button is correctly created and shares a link on my wall but the linked shared is only :

 http://www.site.com/page/

Where's the ?key=... part? How to get it back?

I used http://developers.facebook.com/tools/debug to see what's going on. In the "Redirect path" section, I have original and canonical URL but it's finally the canonical URL that is shared. How to share the original URL?

Thanks!

share|improve this question

closed as off topic by phwd Jan 23 '12 at 14:52

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

2 Answers

facebook might have a problem with url form. try:

http://www.site.com/page.php?key=4v56dfv456sdfv456s

not

http://www.site.com/page/?key=4v56dfv456sdfv456s

share|improve this answer
It's a wordpress website, I can't do that. Is there another way? – jafar Jan 23 '12 at 9:38
have you tried using this to debug? developers.facebook.com/tools/debug – Dan Kanze Jan 23 '12 at 9:42
Of course. In the "redirect path" section, it tells that the canonical url is used and not the original url (which is the one I want to share) – jafar Jan 23 '12 at 9:51
you could force a url rewrite to remove the tailing backslashes at the end. addedbytes.com/for-beginners/url-rewriting-for-beginners – Dan Kanze Jan 23 '12 at 9:54

Try using facebook post-to-wall function instead of share since it looks the same, but share button is no longer supported by Facebook, hence it could not work well.

Hope this helps

Best

share|improve this answer
Is there a way to do that without having to create a facebook app? – jafar Jan 23 '12 at 9:56
No, you have to create facebook app for this. – djtina Jan 23 '12 at 10:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.