Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/05/2011, 17:57
DavidQuirogaC
 
Fecha de Ingreso: febrero-2011
Mensajes: 3
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: Facebook boton me gusta

Okey, creo que Ember no entendió bien.
Al insertar el botón "Me Gusta" de Facebook en un lugar externo, necesitas darle a Facebook unos cuantos datos para que los pueda publicar en el perfil de la persona que haga click en dicho boton.

Esto se logra mediante los "Open Graph Tags", los cuales son <meta> tags que le dicen a Facebook datos varios.
Aqui tienes la fórmula:

Código:
<meta property="og:tag name" content="tag value"/>
Ahora, necesitas cambiar "og:tag name" por: (cita en inglés)
Cita:
og:title - The title of the entity.
og:type - The type of entity. You must select a type from the list of Open Graph types.
og:image - The URL to an image that represents the entity. Images must be at least 50 pixels by 50 pixels. Square images work best, but you are allowed to use images up to three times as wide as they are tall.
og:url - The canonical, permanent URL of the page representing the entity. When you use Open Graph tags, the Like button posts a link to the og:url instead of the URL in the Like button code.
og:site_name - A human-readable name for your site, e.g., "IMDb".
fb:admins or fb:app_id - A comma-separated list of either the Facebook IDs of page administrators or a Facebook Platform application ID. At a minimum, include only your own Facebook ID.
Si cambias "og:tag name" por "og:title", significa que quieres decirle a Facebook cual es el título, luego cambias "tag value" por el título que quieras, en el muro de la persona le saldía así:
Cita:
A (Persona) le gusta "Titulo"
Ahora, si cambias "og:tag name" por "og:site_name" y el "tag value" por el nombre de tu web saldría así:
Cita:
A (Persona) le gusta "Titulo de página" en "Sitio web
Podría ser (ejemplo)
Cita:
A Carlos Ramirez le gusta "Rocky Balboa" en "IMDB"
Y es lo mismo con todos los valores demás, foto de perfil, url etc.

PD: se me olvido decirte, copia la formula que te había dicho antes en la parte <head> de tu código.

Ejemplo final:
Código HTML:
...
<head>
<meta property="og:title" content="titulo de mi pagina"/> 
<meta property="og:image" content="imagen.jpg/>
<meta property="og:site_name" content="mi sitio web"/>
</head> 
Aqui tienes la página web de Facebook Desarrollador para más detalles
[URL="http://developers.facebook.com/docs/reference/plugins/like/"]http://developers.facebook.com/docs/reference/plugins/like/[/URL]

¡Saludos!