<p>You need to get token from API server before signing requests with it, don't you?</p>
<div class="gmail_quote">19.02.2013 16:42 пользователь "takeshi honda" <<a href="mailto:moecho21@gmail.com">moecho21@gmail.com</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The following code gave me the error, "facebook.GraphAPIError: Unsupported operation". How can I fix this error?<br>
<br>
import facebook<br>
import sys;<br>
<br>
token = 'mytokenxxxxxxxxx';<br>
<br>
graph = facebook.GraphAPI(token)<br>
profile = graph.get_object("myusername")<br>
friends = graph.get_connections("myusername", "friends") # error occured at this line.<br>
<br>
friend_list = [friend['name'] for friend in friends['data']]<br>
print friend_list<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</blockquote></div>