2016-06-17 56 views
1

我要實現與Facebook登錄和使用Django,allauth應用谷歌,但我得到一個錯誤,即
You are not logged in: You are not logged in. Please log in and try again.Django的allauth Facebook的錯誤

My Facebook App Settings 

Setting Image 1

Setting Image 2

我該怎麼做?

+0

你可以添加更多的細節,例如**當你得到錯誤時(即你在登錄過程中得到了多少 - 當你去'/ auth/facebook/login /'時會發生什麼)以及你的配置是什麼(例如包括'/ admin/socialaccount/socialapp /'帶有空白憑據)。 – raphv

回答

0

下解決我的問題:

Valid Oauth redirect URI ---> set to http://localhost:8000/ 
1

更改您的重定向URI來

http://localhost:8000/accounts/facebook/login/callback/ 

,並確保有SITE_ID = 1的設置。