authentication - Unable to authorize on Facebook with fbconsole -
i install dean malmgren's fork of fbconsole lib, , try fbconsole.automatically_authenticate function authenticate on facebook no luck. error message:
/var/virtualenvs/jd/src/fbconsole/src/fbconsole.pyc in automatically_authenticate(username, password, app_secret, redirect_uri, debug) 411 oauth["state"][0], state, 412 ) --> 413 code = oauth["code"][0] 414 415 # 4. exchange code user access token user's data keyerror: 'code' i don't know wrong. have suspicion, there problem facebook app settings (for example not able set site url http://127.0.0.1:8080 value). try run code on localhost , on production server. error still same (facebook didn't give me code parameter).
does know problem please?
oauth doesn't have 'code' parameter because on previous step error facebook because used expired app_id (that defined in fbconsole).
correct usage of fbconsole.automatically_authenticate:
import fbconsole.py fbconsole.app_id = 'our app_id' fbconsole.automatically_authenticate('login','pass','our app_secret','request_uri')
Comments
Post a Comment