You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
628 B
30 lines
628 B
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Facebook Login JavaScript Example</title>
|
|
<meta charset="UTF-8">
|
|
</head>
|
|
<body>
|
|
|
|
<div id="status">
|
|
</div>
|
|
|
|
<script src="jquery.min.js"></script>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
$.ajaxSetup({ cache: true });
|
|
$.getScript('https://connect.facebook.net/en_US/sdk.js', function(){
|
|
FB.init({
|
|
appId: '176954776322838',
|
|
version: 'v2.8'
|
|
});
|
|
$('#loginbutton,#feedbutton').removeAttr('disabled');
|
|
FB.getLoginStatus(updateStatusCallback);
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</html> |