打开多个共享按钮的图形META标签

时间:2013-02-11 18:40:22

标签: facebook meta-tags

有没有办法为每个FB共享按钮设置特定的og元标记?

<meta property="og:title" content="Youtube video 1" />
<meta property="og:description" content="First link to a youtube video" />
<meta property="og:image" content="http://www.plasticoperator.com/youtube_logo_black.png" />


<a href="http://www.facebook.com/sharer.php?u=http://www.youtube.com/watch?v=FXPXHK7I1iQ" onClick="return fbs_click(626, 305)" target="_blank" >SHARE 1</a>

    <a href="http://www.facebook.com/sharer.php?u=http://www.youtube.com/watch?v=FXPXHK7I1iQ" onClick="return fbs_click(626, 305)" target="_blank" >SHARE 2</a>

    <a href="http://www.facebook.com/sharer.php?u=http://www.youtube.com/watch?v=FXPXHK7I1iQ" onClick="return fbs_click(626, 305)" target="_blank" >SHARE 3</a>

谢谢

1 个答案:

答案 0 :(得分:1)

<head>中没有元标记,只需将其与sharer.php内联:

Stichoza更新的代码

<a
    id="fb-share"
    style='text-decoration:none;'
    type="icon_link"
    onClick="window.open(
        'http://www.facebook.com/sharer.php?s=100&p[title]=YOUR_TITLE&p[summary]='
            + 'YOUR_DESCRIPTION&p[url]=YOUR_URL&p[images][0]=YOUR_IMAGE',
        'sharer',
        'toolbar=0,status=0,width=580,height=325');"
    href="javascript: void(0)"
>Share</a>