Skip to content

Instantly share code, notes, and snippets.

@sjoonk
Created March 7, 2012 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sjoonk/1991638 to your computer and use it in GitHub Desktop.
Save sjoonk/1991638 to your computer and use it in GitHub Desktop.
Facebook page app html sample
<!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>
@btzochev
Copy link

<!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); }
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>

@msasirekha
Copy link

hi

@msasirekha
Copy link

helo

@msasirekha
Copy link

heeee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment