user516883
user516883

Reputation: 9378

Facebook like button create automatically

Is it possible without going to https://developers.facebook.com/tools/lint/ and putting in the URL, to rub a webservice or something and have it return the Iframe code? I do not want to go to that site manually. Thanks for any help

Upvotes: 1

Views: 276

Answers (2)

samccone
samccone

Reputation: 10926

Here you go

just modify the urls array :)

http://jsfiddle.net/Tatqu/

Upvotes: 0

miku
miku

Reputation: 188024

Just construct the URL yourself,

<iframe 
  src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fgoogle.com%2F"
  scrolling="no" frameborder="0" style="height: 62px; width: 100%"
  allowTransparency="true"></iframe>

and put your site's URL urlencoded behind the ?href=.

Upvotes: 5

Related Questions