我开始学习 facepy,当我尝试从 facepy 发帖时,出现错误。但我可以得到帖子的详细信息。我的代码:
>>> from facepy import GraphAPI
>>>g = GraphAPI('my_token')
>>> g.get(506482556089521)['from']
{u'name': u'Aswin Murugesh', u'id': u'100001833444044'}
>>> g.post(
... path = 'me/posts',
... message = 'Hello'
... )
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/usr/local/lib/python2.7/dist-packages/facepy/graph_api.py", line 65, in post
retry = retry
File "/usr/local/lib/python2.7/dist-packages/facepy/graph_api.py", line 237, in _query
return load(method, url, data)[0]
File "/usr/local/lib/python2.7/dist-packages/facepy/graph_api.py", line 201, in load
result = self._parse(response.content)
File "/usr/local/lib/python2.7/dist-packages/facepy/graph_api.py", line 279, in _parse
error.get('code', None)
facepy.exceptions.FacebookError
为什么我会收到此错误?