sns-sdks / python-facebook

A simple Python wrapper for facebook graph api :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-facebook/
328 stars 86 forks source link

AttributeError: 'GraphAPI' object has no attribute 'page' #191

Closed DEADSEC-SECURITY closed 2 years ago

DEADSEC-SECURITY commented 2 years ago

Hey guys I'm trying to get page info from FB but im getting page is not attribute of error.

graph = GraphAPI(app_id='', app_secret='«', application_only_auth=True)
print(graph.page.get_info(page_id=''))

Do I need to do anything else before calling the api with the GraphAPI class?