php - Like and Share button doesn't show the page tittle propertly -
php - Like and Share button doesn't show the page tittle propertly -
i'm having problem, facebook's & share api.
i set code facebook provides, changing "data-href" specific url references page via "php method" in way:
echo ' <li> <div class="fb-like" data-href="http://www.alanmarth.com/index.php?seccion=blog&id='.$entrow["identrada"].'" data-layout="button" data-action="like" data-show-faces="false" data-share="true"></div> </li>';
but unusual reason, when click on "share" button, title of shown in facebook different original one, or works in posts.
for example:
url: http://www.alanmarth.com/index.php?seccion=blog&id=2original title: "alan marth :: algoritmo de camino más corto"
title when shared: "alan marth :: blog"
doesn't show post images in preview
but, in other's hand:
url: http://www.alanmarth.com/index.php?seccion=blog&id=1original title: "alan marth :: ¡nuevo sistema de noticias!"
title when shared: "alan marth :: ¡nuevo sistema de noticias!"
it shows images in post preview
¿any ideas? thanks!
if ever posted link on facebook before complete, go (http://developers.facebook.com/tools/debug) debug url. if doesn't solve problem, utilize facebook's open graph meta tags in page's :
<meta property="og:title" content="my website" /> <meta property="og:image" content="http://www.full_image_url.jpeg" />
php facebook share title preview
Comments
Post a Comment