KDM Posted December 26, 2010 Share Posted December 26, 2010 This is the url I want the like button to be added on http://mysite.net/imagedetails.php?id=1438, but I don't want the Like button on just id =1438, I need it on every image id have, and if someone clicks the link on a friends wall, it should take them to the image their friend liked on my site. Sow do I rewrite this code so that it will work with multiple image id's? <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmysite.net%2Fimagedetails.php%3Fid%3D1438&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> I'm guessing somewhere in here href=http%3A%2F%2Fmysite.net%2Fimagedetails.php%3Fid%3D1438& I would have to tell it to GET the particular imagedetails id number. Help Please. Quote Link to comment https://forums.phpfreaks.com/topic/222660-trouble-with-the-facebook-like-button-on-my-site/ Share on other sites More sharing options...
KDM Posted December 27, 2010 Author Share Posted December 27, 2010 any help? Quote Link to comment https://forums.phpfreaks.com/topic/222660-trouble-with-the-facebook-like-button-on-my-site/#findComment-1151671 Share on other sites More sharing options...
xProteuSx Posted December 27, 2010 Share Posted December 27, 2010 KDM, I am confused by your explanation of the problem. Please take some time to describe things, step by step to the best of your abilities. I'll check in on this post now and then ... Quote Link to comment https://forums.phpfreaks.com/topic/222660-trouble-with-the-facebook-like-button-on-my-site/#findComment-1151726 Share on other sites More sharing options...
KDM Posted December 28, 2010 Author Share Posted December 28, 2010 KDM, I am confused by your explanation of the problem. Please take some time to describe things, step by step to the best of your abilities. I'll check in on this post now and then ... Ok basically I have a website where users can upload images. Each image is given an ID that displays at the end of the url. For example...http://mysite.net/imagedetails.php?id=1443 (I would paste this url in the facebook form for the like button, but this is no good if I have multiple images on my site ) I want a like button for every image a user uploads. Multiple images uploaded means multiple url's. Facebook only allows you to input one url you would want the like button to be on. Hope that helps. Quote Link to comment https://forums.phpfreaks.com/topic/222660-trouble-with-the-facebook-like-button-on-my-site/#findComment-1152016 Share on other sites More sharing options...
xProteuSx Posted February 16, 2011 Share Posted February 16, 2011 KMD, I'm not very familiar with Facebook and their 'Like' buttons, but if the Facebook format is "http://mysite.net/imagedetails.php?id=1443" then you are stuck. The script accepts a single URL at a time, and it seems as though you cannot attach additional data. I'm just thinking about the receiving end at Facebook. It is designed to receive a single URL without additional data such as a member name (which you would need to refer other users to other images by the same member). Are you trying to send more data than a single URL, in string format, or are you trying to auto-create multiple button for multiple URL's? Quote Link to comment https://forums.phpfreaks.com/topic/222660-trouble-with-the-facebook-like-button-on-my-site/#findComment-1174897 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.