자동 생성된 페이스북 댓글 상자 (Auto-generated facebook comments boxes)


문제 설명

자동 생성된 페이스북 댓글 상자 (Auto‑generated facebook comments boxes)

내 뉴스 페이지에 Facebook 댓글 상자를 구현하고 있습니다. 그리고 그것은 작동합니다. 문제는 한 페이지에 댓글을 작성하면 fb 댓글 상자가 포함된 모든 페이지에 표시된다는 것입니다.

현재 내 코드는 다음과 같습니다.

<b><div class="fb‑comments" data‑href="http://selandia‑ceu.dk/selandia/nyheder.aspx" data‑num‑posts="3" data‑width="500"></div>

<script>
  var fb‑comments = document.getElementById('fb‑comments');  
  mydiv.innerHTML =
    '<div class="fb‑comments" data‑href="' + document.location.href + '" data‑num‑posts="3" data‑width="500"></fb:comments>';  
  FB.XFBML.parse(fb‑comments);
</script></b>

웹사이트는 Microsoft Server를 사용하고 있습니다. 코드의 URL은 현재 보고 있는 페이지를 참조해야 합니다. 내가 무엇을 해야 하는지 아는 사람? :)

댓글은 페이지에서 일시적으로 비활성화됩니다.

다음 스레드에서 추가 코드(FB.XFBML.parse)를 얻었습니다. 각 ajax 호출 후 다른 Facebook 댓글 상자


참조 솔루션

방법 1:

You may need to clean up your Open Graph tags, as the URL that each comments plugin is pointed to will be scraped by the Open Graph linter and used to determine the canonical URL. The problem is likely that your comments plugins all end up pointing to the same canonical URL:

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fselandia‑ceu.dk%2Fselandia%2Fnyheder.aspx

Use this Debug tool to inspect your Open Graph tags and ensure each page has it's own canonical URL. You also need to correct the fb:admins tag that you have in your HTML as suggested by the debugger.

(by user1417261Matthew Johnston)

참조 문서

  1. Auto‑generated facebook comments boxes (CC BY‑SA 2.5/3.0/4.0)

#facebook-comments #html






관련 질문

ROR + 모든 게시물에 대한 최신 또는 마지막 두 개의 댓글 가져오기 (ROR + Fetch latest or last two comments for every Post)

Facebook에 다시 게시하지 않고 Facebook 댓글을 사용하시겠습니까? (Use Facebook Comments without posting back to Facebook?)

뉴스피드에 댓글 올리기 (Posting a comment on the news feed)

Facebook 댓글이 extjs 컨테이너에 표시되지 않습니다. (Facebook comments don't appear in extjs container)

Facebook 댓글 소셜 플러그인에 댓글을 추가할 수 있는 API가 있습니까? (Does the Facebook Comments Social Plugin have an API where comments can be added?)

자동 생성된 페이스북 댓글 상자 (Auto-generated facebook comments boxes)

Facebook 댓글 상자가 설치되었지만 중재자 보기 탭이 표시되지 않음 (Facebook Comment box Installed OK but moderator view tab not showing)

포스트백을 시도할 때 Oauth 예외 발생 (Getting Oauth Exceptions When trying to postback)

페이스북 댓글 - 중재를 허용하지 않습니다. (facebook comments - doesn't let me moderate)

같은 페이지에서 Facebook 좋아요 및 Facebook 댓글 활성화 (Activate Facebook like and facebook comment on same page)

웹사이트의 Facebook 댓글(사이트의 다른 페이지에서 작동하도록 만들기) (Facebook Comments on a Website (Making it work with diffrent pages on the site))

Facebook 댓글이 때때로 로드되지 않음 (Facebook Comments sometimes not loading)







코멘트