Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added documentation to README for using the automatically_authenticat…

…e method
  • Loading branch information...
commit 51628312d4139591dc50b5810f010ed3b2465ca5 1 parent ab2c5fe
@deanmalmgren authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 README.md
View
17 README.md
@@ -122,6 +122,23 @@ altogether:
fbconsole.ACCESS_TOKEN = '<your-access-token>'
+As a means to set the `ACCESS_TOKEN`, fbconsole provides an automatic
+mechanism for authenticating server-side apps by completing the OAuth
+process automatically:
+
+ fbconsole.automatically_authenticate(
+ username, # facebook username for authentication
+ password, # facebook password for authentication
+ app_secret, # "app secret" from [facebook settings](https://developers.facebook.com/apps)
+ redirect_uri, # redirect uri specified in [facebook settings](https://developers.facebook.com/apps)
+ )
+
+This method for authentication is particularly helpful, for example,
+for running cron jobs that grab data from the Graph API on a daily
+basis. If you have any trouble using the `automatic_authentication`
+method, be sure to double check that the username, password, app
+secret, and redirect uri are all consistent with your apps
+[facebook settings](https://developers.facebook.com/apps).
### Other Options ###
Please sign in to comment.
Something went wrong with that request. Please try again.