Jump to content

Trouble with the facebook like button on my site.


KDM

Recommended Posts

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&amp

I would have to tell it to GET the particular imagedetails id number.

 

Help Please.

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.

  • 1 month later...

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.