I've tried this code to find name of friends on facebook in python but it's not working
import facebook
token='my token'
graph= facebook.GraphAPI(token)
profile=graph.get_object("me") #extracting your own profile
friends=graph.get_connections("me","friends")['data']
friend_list=[friend['name'] for friend in friends]
print friend_list
The error: SyntaxError: Missing parentheses in call to 'print'