Fork me on Github

Django Facebook - Test page

By Thierry Schellenbach mellowmorning.com, @tschellenbach

Soon you will be able to check django-facebook.com for more info.

{% if request.GET.fb_error_or_cancel or request.GET.error %}
Please click allow in the facebook interface, to access Fashiolista
{% endif %}
Couldn't load the static Javascript files, is django static configured correctly? See the docs here.
{% if messages %} {% endif %}
{% if not request.user.is_authenticated %}

Register, login or connect with Facebook



(javascript popup)



(redirect version)
You are not logged in, Please login by clicking one of the buttons above
{% endif %}
{% if request.user.is_authenticated %}

Welcome {{ request.user }}

logout

Thank you for logging in with Facebook. By default you will have the following data available:

Field Data
First Name:{{ request.user.first_name }}
Last Name:{{ request.user.last_name }}
Gender:{{ request.user.get_profile.gender }}
About me:{{ request.user.get_profile.about_me }}
Facebook profile url:{{ request.user.get_profile.facebook_profile_url }}
Facebook ID:{{ request.user.get_profile.facebook_id }}
Date of Birth:{{ request.user.get_profile.date_of_birth }}
Website Url:{{ request.user.get_profile.website_url }}
Local Image:
Hotlinked Image:
Likes:
    {% for like in request.user.get_profile.likes|slice:":5" %}
  • {{ like.name }}
  • {% endfor %}
Friends:
    {% for friend in request.user.get_profile.friends|slice:":5" %}
  • {{ friend.name }}
  • {% endfor %}
Getting More:Facebook has a ton more data, read about it here.

You can connect users which registered the old fashioned way, by giving them the following option to connect. Note that we explitly indicate that we are connecting using the connect_facebook=1 value.

Connect this account to Facebook (used to connect non facebook accounts)
{% endif %}

Advanced Testing

Test fresh registration
Test registration







Album upload flow

{% csrf_token %} image image

Post to My Wall

{% csrf_token %}

Post to My Wall - Javascript Popup version

{% csrf_token %}
{% include 'django_facebook/_facebook_js.html' %}