2010-06-17 33 views

Respuesta

1
<iframe frameborder="0" scrolling="no" allowtransparency="true" style="border: medium none; overflow: hidden; width: 150px; height: 20px;" src=" http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.yoursiteurlencodedhere.com&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;height=80"></iframe> 

Tomar nota de la: http% 3A% 2F% 2Fwww.yoursiteurlencodedhere.com sección.

0

No es posible a través de las API de Facebook. La solución anterior de iframe podría funcionar.

0

Aquí están los detalles para agregar un botón me gusta a Facebook.

http://developers.facebook.com/docs/reference/plugins/like/

Usted puede utilizar el método de marco flotante:

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Fpage%2Fto%2Flike&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> 

o puede utilizar el método XFBML:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like show_faces="true" width="450"></fb:like> 

personalmente creo que el método XFBML es más limpio. Lamentablemente, esto no solicita activamente al usuario, simplemente agrega el botón a su página. No hay forma en su API de incitar a alguien.

Cuestiones relacionadas