Php 我需要使用facebook共享多张图片

Php 我需要使用facebook共享多张图片,php,facebook,fbml,Php,Facebook,Fbml,在我的网站上有购物车。如果购物车包含4种产品,那么4张图片将同时在facebook上共享 现在我使用下面的代码,但它不能正常工作 <?php $facebook = "http://www.facebook.com/sharer.php?u=http://server.ashoresystems.com/~crookedt/index.php?option=com_easydiscuss&view=post"; ?> 下面的url是该页面的屏幕截图 请帮我解决这个问题

在我的网站上有购物车。如果购物车包含4种产品,那么4张图片将同时在facebook上共享

现在我使用下面的代码,但它不能正常工作

<?php 
$facebook = "http://www.facebook.com/sharer.php?u=http://server.ashoresystems.com/~crookedt/index.php?option=com_easydiscuss&view=post";
?>

下面的url是该页面的屏幕截图

请帮我解决这个问题

这是我的密码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml">  
<?php
                    $title=urlencode('Title of Your iFrame Tab');
                    //$url=urlencode('http://www.facebook.com/yourfanpage');
                    $url=urlencode('http://www.kokopame.com');
                    $summary=urlencode('Custom message that summarizes what your tab is about, or just a simple message to tell people to check out your tab.');

                ?>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Kokopame</title>
        <meta property="og:title" content="Title of Your iFrame Tab"/>
        <meta property="og:description" content="Custom message that summarizes what your tab is about, to tell people to check out your tab."/>


        <link rel="image_src" href="http://www.decibio.com/store/report_icon/medium/1375336395_Rx Tools report icon.jpg" />
        <link rel="image_src" href="http://www.decibio.com/store/report_icon/medium/1370905582_NGS.jpg" />

        </head>
    <body>


    <?php $url = urlencode('http://www.kokopame.com/test_share_images.php'); ?>

     <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $url;?>" target="_blank" >Share Metadata Example111</a><br/>

     <?php //echo file_get_contents('https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.kokopame.com%2Ftest_share_images.php');?>

    </body>
</html>

科帕姆

谢谢


Mark

您可以使用Facebook的
照片API
将照片发布到用户的相册上

所需权限:
发布流
用户照片

API:
\POST
/photos
以及所需的参数(图像、名称等)


有关更多详细信息,请访问此处:

您不能与旧的sharr.php共享多个图像。您需要使用Graph API,请提供它在facebook开发者网站上的实际链接。“欢迎使用此API。如果以下答案之一解决了您的问题,您应该接受它(单击相应答案旁边的复选标记)。这有两个作用。它让每个人都知道你的问题已经解决,并让帮助你的人相信你的帮助。请参阅以获得完整的解释”。请提供此facebook共享的示例或演示。谢谢,这并不简单。。!当我提供它共享的静态图像时,我正在尝试这个方法,但当我添加动态图像数组时,它不起作用…你不能一次添加图像数组,你必须循环并为每个图像调用api