2013-02-18 2 views
4

'Like'액션이 콜백 기능과 통합되어있는 Facebook 'Like'버튼을 통합하려고합니다. 'Like'활동이 Facebook에 나타나지 않는 것을 제외하면 일하는 것 같습니다.페이스 북의 "Like"버튼을 콜백과 통합 - 활동에 표시하지 않음

내 Facebook 계정으로 테스트 중이며 피드, 프로필 페이지 또는 활동 로그에 해당 활동이 표시되지 않습니다.



    <script src=\"http://connect.facebook.net/en_US/all.js\" type=\"text/javascript\"></script> 
    <script> 
     window.fbAsyncInit = function() { 
     // init the FB JS SDK 
     FB.init({ 
      appId  : 'xxxxxx', // App ID from the App Dashboard 
      status  : true, // check the login status upon init? 
      cookie  : true, // set sessions cookies to allow your server to access the session? 
      xfbml  : true // parse XFBML tags on this page? 
     }); 
     FB.Canvas.setAutoResize(); 
     }; 
    </script> 


    <div class=\"fb-like\" data-href=\"$share_url\" data-send=\"false\" data-layout=\"box_count\" data-width=\"50\" data-show-faces=\"false\"></div> 


    // facebook callback 
    FB.Event.subscribe('edge.create', function(href, widget) { 
     deliverEmail(); 
    }); 

답변

5

내가 처음 오픈 그래프 디버거에 오류를 해결하는 것입니다 :

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fflevy.com%2Fpowerpoint-plugin-test

오류를 여기 http://flevy.com/powerpoint-plugin-test

내 코드입니다 : 여기

내 URL입니다 고정되어야 함

Object Invalid Value 
Object at URL 'http://flevy.com/powerpoint-plugin-test' of type 'website' is invalid because the given value '//flevy.com/images/slides.gif' for property 'og:image:url' could not be parsed as type 'url'. 
0

이 페이지는 많은 HTML 구문 불일치/검증 문제가 있습니다. 속성 값에 대해 작은 따옴표, 큰 따옴표 및 HTML 따옴표를 사용하지 않습니다. 코드에는 일부 종료 태그도 없습니다. 이로 인해 비정상적인 동작이 발생할 수 있습니다. 자바 스크립트는 동일한 스크립트 블록에서 싱글을 사용하고 이중으로 사용할 때와 같은 문제가 있습니다. 당신은 여기에서 유효성 검사를 실행할 수 있습니다

: @DrBeza에 대한 이야기되는

http://validator.w3.org/check?uri=http%3A%2F%2Fflevy.com%2Fpowerpoint-plugin-test&charset=%28detect+automatically%29&doctype=Inline&group=0

오픈 그래프 검증도 해결해야한다. 프레임 워크가 비 프로토콜 특정 URL을 좋아하지 않는 이유를 모르겠지만 http : // 또는 https : //를 해당 이미지에 추가하십시오.

정리 후에는 문제 해결이 더 쉬워야하거나 문제가 필요한 정리 결과 일 수 있습니다.

관련 문제