hi, I am trying to develop facebook app using django.
The problem I am facing is how to use facebook api and get user friend list.
view.py
def canvas(request):
# Get the User object
user, created = FacebookUser.objects.get_or_create(id = request.facebook.uid)
return direct_to_template(request, 'canvas.fbml', extra_context={'fbuser': user,})
so it's working fine for me. I am getting user info in my page.
Welcome,<fb:name uid="{{ fbuser.id }}" firstnameonly="true" useyou="false" />!
this is canvas.fbml
Help needed.
Thanks.