开发者

How do I get the "Interests" of a facebook user uing Facebook Connect? (I'm using Django/python and pyFacebook middleware)

def index(request):
    fbdata = []
    if request.facebook.check_session(request):
        fbdata = request.facebook.users.getInfo(request.facebook.uid, ['name', 'pic'])
    print fbdata

This works! I am able to get the user's picture and name. However...I'd like to get the interests of that user. How can I do that?

By the way, I installed开发者_开发百科 pyfacebook middleware on Django/python.


Add "interests" in the fields you want to fetch, like this:

fbdata = request.facebook.users.getInfo(request.facebook.uid, 
                                        ['name', 'pic', 'interests'])
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜