2011-10-16 5 views
0

이 웹 사이트는 http://smithachallathomas.net63.net/입니다. 이제 공유 (comment stream)를 추가하려고합니다. PHP를 사용하여이 웹 사이트를 만들었습니다. 나는 웹 페이지에 등/공유 버튼이 표시 해달라고좋아요, 공유 버튼이 보이지 않습니다.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#"> 

<head> 
Blog for healthy living 
</head> 
<body> 
Healthy living practices 
<div id="fb-root"></div> 
<script>(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/en_US/all.js#xfbml=1&appId=******"; 
    fjs.parentNode.insertBefore(js, fjs); 
}(document, 'script', 'facebook-jssdk'));</script> 
</body> 

:

은 여기 내 index.php를

<?php include('Header.php'); ?> 

<div id = "content"> 
<div class = "post"> 
<h2></h2> 
<p> 


<p>Body BodyLorem ipsum dolor sit amet, consectetur adipiscing elit. Duis euismod leo vitae nulla euismod commodo. Phasellus at mi quam. 
Etiam lacinia elit pellentesque ligula faucibus nec luctus mi mollis. Duis ante elit, blandit sed placerat sit amet, varius vitae tellus. 
Duis in ante sed metus mollis ornare. Donec ipsum lorem, mollis non ultrices et, porta at dolor. Sed nisi mauris, condimentum nec vehicula 
</p> 



</div> 
</div> 

<?php include('Sidebar.php'); ?> 

<fb:like href="http://www.http://smithachallathomas.net63.net/" send="true" width="450" show_faces="true" font="lucida grande"></fb:like> 
<?php include('Footer.php'); ?> 

Header.php입니다. 도와주세요. 나는 누군가가 이것을 좋아할 때 내 페이스 북 벽 페이지에 표시 될 것이라고 생각하고있다. 추신 : 이것은 공유와 같은 의견을 테스트 한 웹 사이트 일 뿐이다. 일

+1

먼저 을 header.php에서 닫습니다. –

답변

0

당신은 http://www.http://을 넣어 가지고

감사합니다. 그 고정하십시오 :

<fb:like href="http://smithachallathomas.net63.net/" send="true" width="450" show_faces="true" font="lucida grande"></fb:like> 

또한, 당신은 여기, 자바 스크립트 소스 라인에 시작하는 http: 누락 한 것으로 나타났습니다 : 문제가 발생할 것

js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=******"; 

그냥 사소한 것들. 나는 페이스 북 API 전문가는 아니지만.

+0

감사합니다. 이제 작동합니다. 나는 한 가지 질문을 가지고있다. 이것을 aspx 페이지에서 공유하는 것과 같이하는 것은 매우 어렵습니다. 나는 지금 코멘트 스트림을 시도 할 것이다. – user575219

+0

'js.src' 라인은'http :'가 빠져 있기 때문에 메인 페이지와 동일한 프로토콜 (http 또는 https)을 상속받습니다. –

관련 문제