facebookarchive / fbconsole

A micro api client for writing scripts against the Facebook Graph API.
Other
325 stars 74 forks source link

Module object has not attribute automatically_authenticate #32

Closed martinezml2 closed 9 years ago

martinezml2 commented 9 years ago

Hello,

I am currently trying to use fbconsole.automatically_authenticate() however when I attempt to do so I get an error reading "module object has no attribute automatically_authenticate". Your documentation states "As a means to set the ACCESS_TOKEN, fbconsole provides an automatic mechanism (python 2.x only) for authenticating server-side apps by completing the OAuth process automatically". It then provides an example of how to use fbconsole.automatically_authenticate.

I am using python 2.7 I used pip to install fbconsole

The following is the code I am using:

import fbconsole fbconsole.AUTH_SCOPE = ['publish_stream', 'publish_checkins', 'offline_access', 'manage_pages']

fbconsole.automatically_authenticate( facebook_username, facebook_password, my_app_secret, redirect_uri,)

Am I missing something or is automatically_authenticate no longer supported? Thank you for your help.

martinezml2 commented 9 years ago

I was able to fix the issue by removing the package and then instead of using pip install I had to use python setup.py install.