hi, I am trying to get status msg of the user in my facebook app. But
getting error in loading page.

here is the code:

            user, created = FacebookUser.objects.get_or_create(id =
request.facebook.uid)
            key = request.facebook.session_key
            some = request.facebook.friends.get()

           status_msg = request.facebook.status.get
(request.facebook.uid)
           friend_list =[]
           for friends_uid in some:
                    fri_user = request.facebook.users.getInfo
([friends_uid], ['first_name'])[0]['first_name']
                    friend_list.append(fri_user)
           return direct_to_template(request, 'canvas.fbml',
extra_context={'fbuser': user, 'friend_list': friend_list,}

I am trying to play around with facebook api. but getting page loader
error. if i remove the code for status_msg and friend_list I am
getting userinfo in my facebook app.

What am I doing wrong here. How can I fix this problem.

Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to