- 페이스북은 내 컨텐츠를 facebook으로 공유할수 있는 기능을 제공한다. 그외 기능도 다수 제공하지만 제일 많이 쓰이는 부분이 share이다. 하지만 twitter,요즘,싸이월드 share같이 스크립트로 값을 보내기만하면 되는것이 아니라 share할 페이지의 <meta> 를 맞춰주어야 하면 각 주소별로 share될경우 받아오게될 값들을 미리 볼수 있는 debug page를 제공한다.
- 제공하는 share 주소 ( 모바일 : m.facebook.com )
-
http://www.facebook.com/sharer.php?u=< url to share >&t=< title of content >
- Facebook에서는 공유하고자하는 페이지의 제목도 parameter로 넘기라고 하지만 어느 순간부턴 title 부분은 제공하지 않는 것 같다. 공유하는 페이지의 title이나 image등을 지정하려면 아래와 같이 하면 된다.
- 공유할 페이지의 html tag
-
<html xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
- head 태그안에 meta tag
-
<meta property="og:title" content="title" />
<meta property="og:description" content="description" />
<meta property="og:image" content="thumbnail_image" />
- facebook share 체크
- http://developers.facebook.com/tools/debug
* facebook login API (아래 버튼을 클릭하여 facebook login test를 할수 있습니다.)
facebook login
|