Getting facebook data since a specific post ~[({python})]~ -
i trying retrieve facebook posts user after post id. when it, unknown error.
my code:
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 , settings\visolank\desktop\python\programs\facepy\graph_api.py", line 42, in retry=retry file "c:\documents , 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 , 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 , 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 , settings\visolank\desktop\python\programs\facepy\graph_api.py", line 248, in _query return load(method, url, data)[0] file "c:\documents , settings\visolank\desktop\python\programs\facepy\graph_api.py", line 210, in load result = self._parse(response.content) file "c:\documents , settings\visolank\desktop\python\programs\facepy\graph_api.py", line 290, in _parse error.get('code', none) oautherror: [1] unknown error has occurred.
facebook's api doesn't have best error messages. "an unknown error has occurred." means don't have permissions access you're trying access.
Comments
Post a Comment