Skip to content

Instantly share code, notes, and snippets.

@sjoonk
Created November 28, 2011 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjoonk/1399667 to your computer and use it in GitHub Desktop.
Save sjoonk/1399667 to your computer and use it in GitHub Desktop.
Facebook Page Tab template
<!doctype html>
<html xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<meta charset="utf-8">
<title>Fan Event</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js" type="text/javascript"></script>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/ko_KR/all.js"></script>
<script>
FB.init({
appId : 'YOUR APP ID',
status : true,
cookie : true,
oauth: true
});
function sendRequest() {
FB.ui({method: 'apprequests',
title: "이 페이지를 친구들에게 알려 주세요.",
message: '새로운 이벤트가 있습니다.'
}, requestCallback);
}
function requestCallback(response) {
// Handle callback here
}
</script>
<p>
<a href="#" onclick="sendRequest(); return false;">친구에게 알리기</a>
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment