Skip to content

Instantly share code, notes, and snippets.

View d6veteran's full-sized avatar

Will Curran d6veteran

  • Google, D20Mob, SuperKablamo
  • Seattle, WA
View GitHub Profile
@d6veteran
d6veteran / gist:743713
Created December 16, 2010 17:42
Init and Resize iFrame on Facebook Application Canvas Page
window.fbAsyncInit = function() {
FB.init({appId: '{{ facebook_app_id }}', status: true, cookie: true, xfbml: true});
FB.Event.subscribe('{% if current_user %}auth.logout{% else %}auth.login{% endif %}', function(response) {
window.location.reload();
});
FB.Canvas.setAutoResize();
};
[{
"name~=": "Wikipedia",
"type": "/common/topic",
"/common/topic/webpage":
[{"uri":null,
"id" : null,
"topic": null,
"category": null}]
}]