4
내 웹 페이지에 버튼을 구현하려고합니다. 헤더 부분은 관련 메타 태그가 포함URL에서 메타 데이터를 스크랩하지 않는 페이스 북
이 같은 xfbml 코드 버튼과 같은<body class='app_cont_body'>
<!-- fb JSDK -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
if(typeof FB != 'undefined') {
FB.init({
appId : 'FB_APP_ID',
status : true,
cookie : true,
xfbml : true,
oauth : true
});
}
}
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=FB_APP_ID";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
....
그리고 FB : body 태그 내부
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://ogp.me/ns/fb#" >
<head>
<title>
What have you for the world today - Blogs by Antezen
</title>
<link rel="shortcut icon" href="/images/favicon3.ico" type="image/x-icon">
<link rel="icon" href="/images/favicon3.ico" type="image/x-icon">
<meta name="description" content="It was a sunny afternoon..<br>">
<meta property="og:site_name" content="Antezen" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Beginning of a new chapter" />
<meta property="og:url" content="http://antezen.com/blogs/1" />
<link rel="canonical" href="http://antezen.com/blogs/1">
<meta property="og:image" content="http://www.antezen.com/system/pics/645/medium/photo.jpg?1337587175" />
<link rel="image_src" href="http://www.antezen.com/system/pics/645/medium/photo.jpg?1337587175">
<meta property="og:description" content="It was a sunny afternoon..<br>" />
<meta property="fb:admins" content="FB_ADMIN_ID" />
<meta property="fb:app_id" content="FB_APP_ID" />
을, 나는 자바 스크립트 SDK를 지정한
<div id='fblike' class='inline'>
<fb:like href="http://antezen.com/blogs/1" send="false" layout="button_count" width="450" show_faces="false" font="arial"></fb:like>
</div>
페이스 북 디버거 도구 https://developers.facebook.com/tools/debug에서 URL을 확인하면 facebook이 og : image, og : title 등의 og : type 태그를 긁을 수 없음을 보여줍니다.'우리의 스크레이퍼이 URL에 대한보고 정확하게보기'체크에 691,363,210, 나는 다음과 같은 출력을 얻을 : 페이지에서 메타 태그를 긁어 페이스 북 않는 이유를 내가지고 있지 않다
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head>
<body>
<p>$(document).ready(function(){
$(".cast_container").html("\n</p>....
...
...
</body>
</html>
합니다. 제발 도와주세요.