페이스북 댓글 연동 질문 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

페이스북 댓글 연동 질문 정보

페이스북 댓글 연동 질문

본문

페이스북 개발자 사이트에서 연동하는 방법대로 해보니 모든 글에 같은 댓글이 달리네요
해서 인터넷 서핑 중

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="http://www.designlog.org/[ ##_article_rep_link_## ]" num_posts="5" width="468"></fb:comments>

[ ##_article_rep_link_## ]을 그누보드에 맞게 수정하면 된다고 하던데요. 참고로 [ ##_article_rep_link_## ]" 은 티스토리의 치환자라고 하네요. 그누보드는 어떻게 바꿔야 하나요? 그누보드에도 치환자가 있나요?

즐거운 하루 되시고요 ^^
  • 복사

댓글 전체

<?php
$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?bo_table='.$bo_table.'&amp;wr_id='.$wr_id;
$num_posts = 5;
$width = 700;
?>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="<?php echo $url?>" num_posts="<?php echo $num_posts?>" width="<?php echo $width?>"></fb:comments>

오로케 하시면 될것 같은데요....
$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?bo_table='.$bo_table.'&amp;wr_id='.$wr_id; 을 적용하면 안됩니다. $url에 다른 경로를 찍어줄 경우, 마이페이지의 정보수정이 안됩니다. $url이 아닌 다른변수로 찍어줘야 합니다.

저는 $id_url로 찍어주었습니다.
<?php
$id_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?bo_table='.$bo_table.'&amp;wr_id='.$wr_id;
$num_posts = 5;
$width = 700;
?>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="<?php echo $id_url?>" num_posts="<?php echo $num_posts?>" width="<?php echo $width?>"></fb:comments>
© SIRSOFT
현재 페이지 제일 처음으로