1、The demo application will require you to fill in your API and Secret keys from LinkedIn.
2、Your app should be designated as a mobile application, and the OAuth Redirect URL *must* be set to: http://linkedin_oauth/success
花了一天的时间在解决根本就不是问题的问题,第2点未设置。一直在寻找代码的问题,原来方向搞错了。
教训:
使用开源代码时,正常情况下不要怀疑在功能实现上,其代码出错了。应该看清楚“帮助文档”,理解清楚我需要做的事情有哪些。