Need help developing facebook app

I am trying to build a facebook app using django.

The problem I am facing is how to use the facebook api and get the user's 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 works great for me. I am getting user information on my page.

Welcome,<fb:name uid="{{ fbuser.id }}" firstnameonly="true" useyou="false" />!

      

this is canvas.fbml

Help is needed.

Thanks.

0


a source to share


1 answer


Try using single quotes when loading user id, etc.

Otherwise it will look like one of the following - Output error from python. HTML / FBML output should be as follows:



  • Double checking the attributes you are adding is correct. Delicate case.

  • Are you loading the correct authentication information (Keys) into this file? I assume everything is fine on the canvas. Testing hte FBML in the FBML console.

0


a source







All Articles