-
-
Save SecureCloud-biz/7d5b700a0e32483568f5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!-- anchor example --> | |
<a href="#" onclick="FB.Canvas.scrollTo( 0, 500 );">Click here to enter</a> | |
<!-- anchor with jQuery dynamic placement example --> | |
<a href="#" onclick="FB.Canvas.scrollTo( 0, $('.enter-btn').offset().top );">Click here to enter</a> | |
<!-- page load example --> | |
<script type="text/javascript"> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : 'xxx', // App ID | |
channelUrl : 'channel.html', // Channel File | |
status : true, // check login status | |
cookie : true, // enable cookies to allow the server to access the session | |
xfbml : true // parse XFBML | |
}); | |
FB.Canvas.scrollTo(0, 0); | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment