2017-09-11 5 views
0

내 Facebook 앱이 샌드 박스에 있지 않습니다. 대화 상자를 공유하면서Facebook 공유 대화 상자에 빈 메시지가 표시됩니다.

,이 같은 빈 메시지를 받고 있습니다 :

enter image description here

내 다음과 같이 HREF은 다음과 같습니다

<a title="send to Facebook" 
    href="http://www.facebook.com/dialog/feed? 
    app_id=1440979716022445& 
    link=http://ariddleaday.com& 
    picture=http://ariddleaday.com/cat.png& 
    name=Can%20you%20help%20Jimmy& 
    caption=A%20Riddle%20A%20Day& 
    description=Try%20this%20and%20have%20fun& 
    message=Jimmy goes to school . His friends Shirushi , Harjot and Aafreen asks him what always ends everything? Jimmy calls you for help , whats the answer ?& 
    redirect_uri=http://ariddleaday.com" 
    > 
<span> 
    Send this Riddle to Facebook 
</span> 
</a> 

I가 호출이 기능을 추가 한 클릭하지만 여전히 동일한 출력을 얻고 있습니다

function postToFeed() { 

     // calling the API ... 
     var obj = { 
      method: 'feed', 
      redirect_uri: 'http://ariddleaday.com', 
      link: 'https://ariddleaday.com', 
      picture: 'http://ariddleaday.com/cat.png', 
      name: 'Riddle of the Day', 
      caption: 'Can you help Jimmy ?', 
      description: 'Jimmy goes to school . His friends Shirushi , Harjot and Aafreen asks him what always ends everything? Jimmy calls you for help , whats the answer ?' 
     }; 

     function callback(response) { 
      document.getElementById('msg').innerHTML = "Thank you for sharing !"; 
     } 

     FB.ui(obj, callback); 

     return false; 

    } 

답변

1

디버거에서 체크 아웃 : https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fariddleaday.com

을 이미지가 뭔가 누락되었습니다 피드 대화에 대한

<meta property="og:image" content=".cat.png" /> 

그 모든 매개 변수를 사용하면 공유 URL에 오픈 그래프 태그를 사용해야되지 않습니다 : https://developers.facebook.com/docs/sharing/webmasters/

변경 내역 : https://developers.facebook.com/docs/apps/changelog#v2_9

+0

나는 이미지에 대한 메타 태그를 설정하는 방법, 그래프 API를 공부? 내가 시도하는 것이 무엇이든, 나는 오류를 범하기 때문입니다. –

+1

귀하의 HTML 머리 부분에 넣어 ... – luschn

+0

내 대답에 공유하기위한 추가 링크를 추가했습니다. 오류가 발생하는 경우, 한 개만 말하십시오.) – luschn

관련 문제