I'm having a problem passing my URL variables to the Facebook feed dialog. I can see it in the link when I press the button, but once I post it on Facebook, I get everything until the &
.
Here's my code:
<a href="https://www.facebook.com/dialog/feed?
app_id=142170752632916&
redirect_uri=http://domain.com/&
link=$currentUrl&
picture=http://fbrell.com/f8.jpg&
name=$title&
description=$description">Share</a>
$currentUrl = $_SERVER['REQUEST_URI'] ;
My URL looks like this:
www.Domain_Name.com/index.php?subaction=showfull&id=1368007502&start_from=3&template=Default&#disqus_thread
Once I post it on Facebook, I get the link as:
www.Domain_Name.com/index.php?subaction=showfull
And no id or other attributes are passed.
What can i do to fix it?
Edit:
Here's what I get once I try to post my link on the feed:
https://www.facebook.com/dialog/feed?%20%20app_id=142170752632916&%20%20redirect_uri=http://domain.com /&%20%20link=http://www.domain.com/FrontEnd/index.php?subaction=showfull&id=1368007502&start_from=3&template=Default&&%20%20picture=http://fbrell.com/f8.jpg&%20%20name=bbb&%20%20description=bbb