Template tagsΒΆ

Fandjango provides a template tag for loading and initializing Facebook’s JavaScript SDK:

{% load facebook %}

{% facebook_init %}
    // This code will be run once the JavaScript SDK has been loaded and initialized.
    alert('It worked!');
{% endfacebook %}

Previous topic

Authorization

This Page