开发者

Multiple Problems with Django SocialAuth - logging in with facebook, yahoo, google

开发者 https://www.devze.com 2023-01-14 08:30 出处:网络
I am having some problems with the app django socialauth. I am receiving the following errors: no such table: openid_consumer_association

I am having some problems with the app django socialauth.

I am receiving the following errors:

no such table: openid_consumer_association

I got the above error whenever I click on the google or Yahoo icon for logging in. may I know how do i fix this problem?

Another error I am receiving is related to facebook connect. Whenever i try to access the facebook login url at http://localhost:8000/accounts/facebook_login/, I receive the following error:

{
   "error": {
      "type": "OAuthException",
      "message": "Missing client_id"
   }
}

I've been searching high and low for a successful implementation of socialauth.

But it seems that there is quite a bit of开发者_如何学运维 bugs?

Any tips, suggestions are more than welcomed!


For the Google and Yahoo buttons, the socialauth login page fails because (I'm guessing here, but it does the same for mine) you don't have the authentication backend enabled for OpenID support. Once you do this, and of course, fill in the other OpenID-required elements, you should have working links.


you have to put those in your settings

FACEBOOK_APP_ID = ''
FACEBOOK_API_KEY = ''
FACEBOOK_SECRET_KEY = ''

get those id & keys from http://www.facebook.com/developers/apps.php

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号