2014-02-14 42 views
4

我正在使用Facebook共享。Facebook共享后使用了错误的图像和文字

所以自定义共享图片和文字我使用下面的代码

<a href="http://www.facebook.com/sharer.php?s= 100&amp;p[title]=Mulankidz&amp;p[url]=<?php echo $url;?>&amp;p[images][0]=http://www.mulankidz.com/images/vie.gif&amp;p[summary]=Welcome to MuLan Educational Games, a unique portal that specializes in online educational games for kids." class="facebook" title="Facebook" target="_blank"></a> 

当我尝试共享它显示的内容和图片是我在上面的代码中使用的网页..

enter image description here

但按下分享按钮,它在我的时间表共享..这正显示出以下各项内容后..

enter image description here

这里是我的网站链接,我使用上面的代码来分享点击Facebook图标时。 website page link here

我没有它显示共享后不同的内容和图像的任何idea..why ..

任何帮助..和建议,接受

回答

2

您需要提供

<meta property="og:image" content="url to image" /> 

在您的页面上FB可以在发布时阅读图片。

这里了解如何做到这一点

http://moz.com/blog/meta-data-templates-123

UPDATE

我想你的URL https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.mulankidz.com%2Fvideos%2Fvideos.php

Facebook除错工具,这给了我以下 -

og:image should be larger 
Provided og:image is not big enough. 
Please use an image that's at least 200x200 px. 
Image http://www.mulankidz.com/videos/../images/star.gif 
will be used instead. 

您需要提供至少200x200像素的图像

+0

我添加了元标记到我的代码,它不工作..我使用如下 PHPCoder

+0

没有图像路径应该是全部yourdomain.com/path-to-image –

+0

我看到你给完整路径 –

0

您可能在创建应用程序后更改了图像。尝试从developer.facebook.com重新创建应用程序。希望它会生效。