Facebook Graph API

Сахнов Михаил sahnov.m at gmail.com
Tue Feb 19 10:49:49 EST 2013


You need to get token from API server before signing requests with it,
don't you?
19.02.2013 16:42 пользователь "takeshi honda" <moecho21 at gmail.com> написал:

> The following code gave me the error, "facebook.GraphAPIError: Unsupported
> operation". How can I fix this error?
>
> import facebook
> import sys;
>
> token = 'mytokenxxxxxxxxx';
>
> graph = facebook.GraphAPI(token)
> profile = graph.get_object("myusername")
> friends = graph.get_connections("myusername", "friends") # error occured
> at this line.
>
> friend_list = [friend['name'] for friend in friends['data']]
> print friend_list
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130219/bf95fffd/attachment.html>


More information about the Python-list mailing list