2013-08-16 4 views
0

내 웹 사이트에는 장바구니가 있습니다. 장바구니에 4 개 제품이 포함 된 경우 한 번에 4 개의 이미지가 Facebook에서 공유됩니다.페이 스북을 사용하여 여러 이미지를 공유해야합니다.

지금 아래 코드를 사용하고 있지만이 URL을 아래

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

페이지의 스크린 샷입니다 제대로 작동하지 않습니다.

이 문제를 해결하는 데 도움을주십시오.

enter image description here

은 여기 내 코드

<!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> 

감사합니다,

마크

+0

당신은 공유 할 수 없습니다 그 옛날 sharer.php로 한 개 이상의 이미지. 그래프 API를 사용해야합니다. https://developers.facebook.com/docs/reference/api/ – slash197

+0

페이스 북 개발자 사이트에있는 링크를 제공하십시오. – Mark

+0

"에 오신 것을 환영합니다. 아래 답변 중 하나가 문제를 해결하면 받아 들여야합니다 (해당 답변 옆에있는 체크 표시를 클릭하십시오). 두 가지가 있습니다. 문제가 해결되었다는 사실을 모든 사람이 알게하고 도움을 줄 수있는 사람. 자세한 설명은 [here] (http://meta.stackexchange.com/a/5235/187716)를 참조하십시오. –

답변

0

당신은 페이스 북의 Photos API 사용자의 앨범에 사진을 게시하는 데 사용할 수있는 것입니다.

필요한 사용 권한 : publish_streamuser_photos

는 API : \POST 필요한 paramters와 /photos (이미지, 이름 등) 자세한 내용은

당신은 여기 : Photo

+0

이 페이스 북 공유에 예제 나 데모를 제공해 주시겠습니까? 감사합니다, – Mark

+0

본인이 직접 시도 했습니까? 그것은 아주 간단합니다. –

+0

추신. 도움이된다면 대답을 받아 들일 수 있습니다 –

관련 문제