[問題] Facebook sdk for Python的__init__
graph = facebook.GraphAPI(access_token = (my token), version = '2.12')
這行一直出現:
GraphAPIError("Version number should be in the"
facebook.GraphAPIError: Version number should be in the following format:
#.# (e.g. 2.0).
可能是格式不對導致系統判定版本時出錯
因為我把2.12改成2.7就不會有錯了
我查到的__init__是有五個參數的,如果self不算的話
可是官方文件上面
http://facebook-sdk.readthedocs.io/en/latest/api.html
雖然有提到__init__有五個參數,
access_token, timeout, version, proxies, session
但網頁上的example卻長這樣
graph = facebook.GraphAPI(access_token="your_token", version="2.12")
而且前面timeout, proxies我都沒有寫,也沒有報錯
請問有人遇到一樣的問題嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.136.175.220
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1523592189.A.B02.html
推
04/13 15:24,
7年前
, 1F
04/13 15:24, 1F
→
04/13 15:25,
7年前
, 2F
04/13 15:25, 2F
Python 近期熱門文章
PTT數位生活區 即時熱門文章