2017-09-22 1 views
-1

the resultFB 공급 내가 공급 방법을 사용하여 페이스 북에 게시물 공유에 문제가있는 그림 또는 정보

안녕 모두, 를 표시하지 않습니다. 나는 여기에 다른 질문을 보았지만 매우 오래되었고, FB는 많은 것들을 비약적으로 바꿨다. 그래서 내 문제는 팝업 창이 올바른 그림과 정보를 링크에서 가져 가지 않는다는 것이다. 여기 내가 지금 무슨 짓을했는지입니다 : - 공유 페이지 (index.php를) 다른 페이지

<meta property="og:url"   content="http://www.example.com/test/index.php" /> 
<meta property="og:type"   content="website" /> 
<meta property="og:title"   content="My title" /> 
<meta property="og:description" content="Some description" /> 
<meta property="og:image"   content="http://www.example.com/test/images/fb_952_498.jpg" /> 

의 머리에 : 나는 갔다

<script> 
    window.fbAsyncInit = function() { 
    FB.init({ 
     appId  : '123456789', 
     xfbml  : false, 
     version : 'v2.10' 
    }); 
    }; 

    (function(d, s, id){ 
    var js, fjs = d.getElementsByTagName(s)[0]; 
    if (d.getElementById(id)) {return;} 
    js = d.createElement(s); js.id = id; 
    js.src = "//connect.facebook.net/ro_RO/sdk.js"; 
    fjs.parentNode.insertBefore(js, fjs); 
    }(document, 'script', 'facebook-jssdk')); 
</script> 

<script type="text/javascript"> 
function Post_Imagine(){ 
    FB.ui({ 
     method: 'feed', 
     link: 'http://www.example.com/test/index.php', 
     caption: 'Some text', 
    }, function(response){}); 
} 

+0

Facebook 디버그 도구는 무엇이라고 말합니까? 그리고 스스로 해결할 수 없다면 실제 예제 URL을 주면됩니다. 위와 같은 더미 값은 실제로 도움이되지 않습니다. – CBroe

답변

0

디버거와 페이스 북이 캐시를 새로 고치지 않았 음이 밝혀졌습니다. 나는 4-5 시간을 주장했고, 결국 그것은 효과가 있었다. 그래서 관심있는 사람들은 코드가 작동합니다. :)

관련 문제