2016-07-01 3 views
0
내가 페이스 북 로그인

파이썬 페이스 북의 통찰력 오류

 import os 
     import facebookinsights as fi 
     pages = fi.authenticate(
     client_id='app_id', 
     client_secret='app_secret_id') 

를 인증하기 위해 다음 코드를 사용하지만 난 수동

Authentication flow completed. You may close the browser tab. Traceback (most recent call last): File "C:/Users/User/Documents/tt.py", line 5, in client_secret='app_secret_id' File "C:\Program Files (x86)\Python35-32\lib\site-packages\facebookinsights__init__.py", line 35, in authenticate return [graph.Page(token) for token in tokens] File "C:\Program Files (x86)\Python35-32\lib\site-packages\facebookinsights__init__.py", line 35, in return [graph.Page(token) for token in tokens] File "C:\Program Files (x86)\Python35-32\lib\site-packages\facebookinsights\graph.py", line 366, in init self.username = data['username'] KeyError: 'username'

에서이 오류에 대한 모든 솔루션을 로그인 한 후 다음과 같은 오류가 발생

?

+0

당신이 GitHub의에서 페이스 북 파이썬-SDK 저장소 봤어? 문서가 엄청나게 관리되기 때문에 실제로 구조가 무엇인지 알아 내기 위해 거기를 살펴 봐야 할 것입니다 (존재하지 않음을 읽음). –

답변

1

페이지 = fi.authenticate (토큰 = 'pageaccesstoken')

관련 문제