Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Facebook Page App Scrolling Examples
<!-- 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() {
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.