Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
facebook上共享产品的问题_Facebook_Share_Product - Fatal编程技术网

facebook上共享产品的问题

facebook上共享产品的问题,facebook,share,product,Facebook,Share,Product,我正在使用facebook sharer将我网站中的产品共享到facebook中。我尝试了所有的方法…但我不知道问题出在哪里 当我在mysite中点击facebook图标时,它会重定向到facebook,而不会显示产品名称、产品图像和产品描述。这是一份无标题的文件。这是我使用的代码 <head> <meta name="title" content="<?=$fetpro['productname'];?>" /> <meta name="descrip

我正在使用facebook sharer将我网站中的产品共享到facebook中。我尝试了所有的方法…但我不知道问题出在哪里

当我在mysite中点击facebook图标时,它会重定向到facebook,而不会显示产品名称、产品图像和产品描述。这是一份无标题的文件。这是我使用的代码

<head>
<meta name="title" content="<?=$fetpro['productname'];?>" />
<meta name="description" content="Join this bloc to help me get a deal at BBuys" />
<meta name="medium" content="medium_type" />
<link rel="image_src" href="http://www.mysite.com/admin/product_images/<?=$fetpro['product_image']?>" />
</head>
<body>
<a href="http://www.facebook.com/sharer.php?u=http://www.mysite.com/details.php?pro_id=<?php echo $fetpro['auto_id'];?>&t=<?php echo $fetpro['productname'];?>&Width=626 &Height=436 &Toolbar=0 &Status=0"><img src="images/facebook.jpg" /></a></body>


这是共享内容的旧方法。用于允许用户共享您网站中的内容。。。 要让facebook提取正确的图像和标题以预览您的网站,请阅读此帮助页面,了解。。。它向你展示了你必须在你的网站上放置哪些元标签,这样facebook才能创建正确的预览

摘自—


岩石(1996)
...
...

这是共享内容的旧方法。用于允许用户共享您网站中的内容。。。 要让facebook提取正确的图像和标题以预览您的网站,请阅读此帮助页面,了解。。。它向你展示了你必须在你的网站上放置哪些元标签,这样facebook才能创建正确的预览

摘自—


岩石(1996)
...
...

我现在使用的是新格式,是否只共享第一张图像?因此,我在标题中添加了10个具有相同标记的图像,但url不同。只显示第一张图片,有什么提示吗?我现在使用的是新格式,只有第一张图片是共享的吗?因此,我在标题中添加了10个具有相同标记的图像,但url不同。只显示第一个,有什么提示吗?
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:og="http://ogp.me/ns#"
  xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title>The Rock (1996)</title>
<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"/>
<meta property="og:site_name" content="IMDb"/>
<meta property="fb:admins" content="USER_ID"/>
<meta property="og:description"
      content="A group of U.S. Marines, under command of
               a renegade general, take over Alcatraz and
               threaten San Francisco Bay with biological
               weapons."/>
...
</head>
...
</html>