Facebook Graph API

takeshi honda moecho21 at gmail.com
Tue Feb 19 13:37:41 CET 2013

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

More information about the Python-list mailing list