开发者

Facebook image sharing problem [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How does Facebook Sharer select Images?

I have a website named as IdiotsTube , on it I embed videos from youtube. Whenever some one share the link of some video page on facebook. It looks for an image, how can I add a custom image to it.

Like can I hide image somewhere in the page or can add one some where on meta then facebook also crawls that image.

Basically the problem I am facing is that the images crawled by the facebook are irrelivant

Like if someone share this page : Wake Up Muslim

Then the images crawled by facebook are not the images which I wan开发者_开发知识库t.

Thanks :)


You can achieve this by setting some metas. Read more here: http://developers.facebook.com/docs/opengraph/

e.g.

<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜