Facebook Sharer [英] Facebook Sharer
本文介绍了Facebook Sharer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试设置Facebook sharer.php
有人可以给我一些方向。如何获得图像和文字显示?
我正在尝试对espn.com上的共享链接实现类似的效果。
I am trying to set up facebook sharer.php
Can someone give me some direction on this. How do I get an image and text to appear?
I am trying to achieve a similar effect to the share link on espn.com.
非常感谢
推荐答案
您是否尝试了文档?
http://developers.facebook.com/docs/share
将meta标签放置在页面的头部,右侧的缩略图和说明显示在该对话框中。作为一个奖励,如果有人只是以Facebook的状态粘贴到你的页面的链接,那么它也会在那里工作。
Placing meta tags in your page's head makes the right thumbnail and description show up in that dialog. As a bonus, if someone just pastes a link to your page in their Facebook status, it'll work there too.
<meta property="og:title" content="title" />
<meta property="og:description" content="description" />
<meta property="og:image" content="thumbnail_image" />
这篇关于Facebook Sharer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文