We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20821dc commit b1b9862Copy full SHA for b1b9862
examples/example.php
@@ -66,10 +66,11 @@
66
<script>
67
window.fbAsyncInit = function() {
68
FB.init({
69
- appId : '<?php echo $facebook->getAppId(); ?>',
70
- status : true, // check login status
71
- cookie : true, // enable cookies to allow the server to access the session
72
- xfbml : true // parse XFBML
+ appId : '<?php echo $facebook->getAppId(); ?>',
+ status : true, // check login status
+ cookie : true, // enable cookies to allow the server to access the session
+ xfbml : true // parse XFBML
73
+ session : <?php echo json_encode($session); ?>, // don't refetch the session when PHP already has it
74
});
75
76
// whenever the user logs in, we refresh the page
0 commit comments