我剛開始選擇的pac4j,這個框架簡直就是坑啊。說實話我是真心沒有看懂,這個框架的Oauth該怎麼使用。java
後面又看了好幾個,簡直都快崩潰了,不過最後本身瀏覽github發現了一個好框架,scribejava。作國外三方登陸的朋友能夠本身嘗試下。git
我先發表下,本身在作Facebook時遇到了那些問題:github
問題一:Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.app
遇到該問題,解決思路就是:框架
我表紅的地方必定要同樣,不然是不會跳轉滴。domain也會不對。dom
問題二:this
{"error":{"message":"The request is invalid because the app is configured as a desktop app","type":"OAuthException","code":1}}code
遇到這個問題,把這個關了:,我明天再實驗下。get
先列了這兩個頭疼的問題,後面再慢慢羅列。it