Created
March 7, 2012 07:33
-
-
Save sjoonk/1991638 to your computer and use it in GitHub Desktop.
Facebook page app html sample
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>My Twitter Timeline</title> | |
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> | |
<link rel="stylesheet" type="text/css" href="css/jquery.jtweetsanywhere-1.3.1.css"> | |
<link rel="stylesheet" type="text/css" href="css/style.css"> | |
<script src="js/jquery-1.6.2.min.js" type="text/javascript"></script> | |
<script src="js/jquery.jtweetsanywhere-1.3.1.min.js" type="text/javascript"></script> | |
</head> | |
<body class="container canvas"> | |
<div id="fb-root"></div> | |
<script src="//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> | |
<div class="row"> | |
<h1>트위터 타임라인 @CookinFB</h1> | |
<!-- <a href="#" onclick="sendRequest(); return false;">친구에게 알리기</a> --> | |
<div id="tweets"></div> | |
</div> | |
<script type="text/javascript"> | |
$('#tweets').jTweetsAnywhere({ | |
username: 'CookinFB', | |
count: 10, | |
showTweetFeed: { | |
showProfileImages: true, | |
showUserScreenNames: true, | |
paging: { | |
mode: 'endless-scroll' | |
} | |
}, | |
showFollowButton: true | |
}); | |
</script> | |
</body> | |
</html> |
hi
helo
heeee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<!doctype html>
<title>My Twitter Timeline</title> <script src="js/jquery-1.6.2.min.js" type="text/javascript"></script> <script src="js/jquery.jtweetsanywhere-1.3.1.min.js" type="text/javascript"></script> <script src="//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); } </script>