0

投稿 ID の後にユーザーがすべての Facebook 投稿を取得しようとしています。実行すると、不明なエラーが発生します。

私のコード:

from facebook import *
token = facebook.get_app_access_token('3291XXXXXXXXXXXXX','c498e60cb1eXXXXXXXXXXXXX')
graph = GraphAPI(token)
g = graph.get('travelguard/posts?limit=5&since=68827688457_10151569356908458')

>>> Traceback (most recent call last):
  File "<pyshell#40>", line 1, in <module>
    graph.get('travelguard/posts?limit=5&since=68827688457_10151569356908458')
  File "C:\Documents and Settings\visolank\Desktop\Python\programs\facepy\graph_api.py", line 42, in get
    retry=retry
  File "C:\Documents and Settings\visolank\Desktop\Python\programs\facepy\graph_api.py", line 251, in _query
    return self._query(method, path, data, page, retry - 1)
  File "C:\Documents and Settings\visolank\Desktop\Python\programs\facepy\graph_api.py", line 251, in _query
    return self._query(method, path, data, page, retry - 1)
  File "C:\Documents and Settings\visolank\Desktop\Python\programs\facepy\graph_api.py", line 251, in _query
    return self._query(method, path, data, page, retry - 1)
  File "C:\Documents and Settings\visolank\Desktop\Python\programs\facepy\graph_api.py", line 248, in _query
    return load(method, url, data)[0]
  File "C:\Documents and Settings\visolank\Desktop\Python\programs\facepy\graph_api.py", line 210, in load
    result = self._parse(response.content)
  File "C:\Documents and Settings\visolank\Desktop\Python\programs\facepy\graph_api.py", line 290, in _parse
    error.get('code', None)
OAuthError: [1] An unknown error has occurred.
4

1 に答える 1