Reputation: 470
I have used the <iframe>
like button of facebook to like my page, but the problem i'm facing here is that the like.php page of facebook ignores a part of my query string. For eg:
<iframe src="//www.facebook.com/plugins/like.php?href=http://stg.radioworld.com/default.aspx?tabid=75&entryid=10220&width=450&height=21&colorscheme=light&layout=button_count&action=like&show_faces=false&send=false&appId=235245186502970" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 93px; height: 28px; vertical-align: middle;" allowtransparency="true"></iframe>
Here, like.php ignores the entryid
query string and always like http://stg.radioworld.com/default.aspx?tabid=75
. Please help.
Upvotes: 1
Views: 67
Reputation: 9089
I believe the issue is that the entire URL is not encoded. Since you are using .NET, you should be able to use UrlEncode
to correctly encode the entire parameter.
From the looks of it, your ?
and :
in your sub URL are possibly causing issues.
Your URL should probably look something like this:
"...like.php?href=http%3A//stg.radioworld.com/default.aspx%3Ftabid=75&entryid=10220..."
Upvotes: 2