This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

facebook-javascript-authentication is a Django application that manages user authentication via Facebook using the JavaScript Facebook SDK and django-facebook-auth application ( https://github.com/pozytywnie/django-facebook-auth )

Installation

Package

facebook-javascript-authentication can be installed as a normal Python package.

Example instalation for pip:

$ pip install facebook-javascript-authentication

Configuration

settings.py

Set USE_TZ = True

Add facebook_javascript_authentication to INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'facebook_javascript_authentication',
    ...
)

Add javascript authentications urls to application urls:

urlpatterns = patterns('',
    ...
    url(r'^facebook_javascript_authentication/', include('facebook_javascript_authentication.urls')),
    ...
)

Add script.js in html template head:

...
<script type="text/javascript" src="{{ STATIC_URL }}facebook_javascript_authentication/script.js"></script>
...

Add updating isAuthenticated variable on facebook user status change to FB.init block:

{% load facebook_javascript_sdk %}
{% fb_init_block %}
    ...
    updateIsAuthenticatedOnFBStatusChanged();
    ...
{% endblock %}

Usage

loginDialog

To show user login dialog with email permissions:

loginDialog(successCallback, 'email')

isAuthenticated variable

Variable isAuthenticated is set to current user status on each facebook ‘auth.statusChange’ event.

Custom login source

If you have a user access token then you can try authenticate him by calling:

login(access_token, successCallbackFunction)
Release History

Release History

3.2.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

3.2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
facebook-javascript-authentication-3.2.1.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Mar 8, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting