Created
November 28, 2011 08:47
-
-
Save sjoonk/1399667 to your computer and use it in GitHub Desktop.
Facebook Page Tab template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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