As the title indicates, I would like to know how to do to distinguish a user that is logged in with facebook from a user that is logged in by mail. I'm using django-facebook.
It seems that
request.user.is_authenticated()
is for every kind of authentification.
Any help would be welcome,
I think you can check if request.user has a FacebookProfile:
{% if request.user.facebookprofile %}user has facebook profile{% endif %}
Or in python:
if request.user.facebookprofile_id:
print 'has facebookprofile'