我刚开始选择的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