0
我想創建一個腳本來使用GraphAPI從Facebook獲取所有數據,但我一直在使用'get_all_connections'方法的問題,但在文檔http://facebook-sdk.readthedocs.io/en/latest/api.html,他們似乎並不提到任何問題。這裏的腳本:'get_all_connections'沒有與Facebook GraphAPI的屬性錯誤
from bs4 import BeautifulSoup as BS
import requests
import facebook
token = 'mytoken'
graph = facebook.GraphAPI(access_token = token, version='2.7')
friends = graph.get_all_connections(id='id',
connection_name='comments')
print friends
輸出是
AttributeError: 'GraphAPI' object has no attribute 'get_all_connections'