Installing and integrating Django Linked Accounts requires the following steps:

  1. Install Dependencies
  2. Install Django App
  3. Include URLs
  4. Add Authentication Backend
  5. Obtain Service Keys
  6. Add Settings

Install Dependencies

Django Linked Accounts depends on django-oauth-flow.

You can run the following commands through pip install to install the necessary dependencies:

-e git://

Or use supplied requirements.txt file:

git clone git://
cd django-linked-accounts/
pip install -r requirements.txt

You can install the python package with the following:

pip install -e git://

Install Django App

Add linked_accounts to your INSTALLED_APPS (

    # ...

Include URLs

Include URLs for linked_accounts in your URLconf (

urlpatterns = patterns("",
    # ...
    url(r"^linked_accounts/", include("linked_accounts.urls"))

Add Authentication Backend

Add the custom authentication backend to your AUTHENTICATION_BACKENDS ( to allow OAuth authentication with Django Linked Accounts.


Obtain Service Keys

You will need to obtain a KEY and SECRET with each third-party service you want to support. Yes, it’s tedious. But, hey, you only have to do it once for your app and you can piggyback on established social graphs and make things easier for your users by importing information already entered elsewhere.

Here are some handy reference links to get you started:

Most of these services require you to register an authentication callback URL to redirect to after a user authorizes your app. Here’s an example callback URL for Twitter:

Add Settings

Lastly, add OAuth settings in your for each service you want to integrate with using the KEY and SECRET values you obtained in the previous installation step.

Use the following code as a reference and include only the services you want to support:

    'facebook': {
        'KEY': '',
        'SECRET': '',
        'SCOPE': ['email'],
    'twitter': {
        'KEY': '',
        'SECRET': '',
    'google': {
        'KEY': '',
        'SECRET': '',
        'SCOPE': ['']
    'yahoo': {
        'KEY': '',
        'SECRET': '',