{"id":1103,"date":"2016-11-26T08:04:42","date_gmt":"2016-11-26T08:04:42","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=1103"},"modified":"2017-01-25T07:54:34","modified_gmt":"2017-01-25T07:54:34","slug":"linkedin-oauth2-app","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/11\/26\/linkedin-oauth2-app\/","title":{"rendered":"Linkedin Oauth2 App"},"content":{"rendered":"<p>Ref: <a href=\"https:\/\/developer.linkedin.com\/docs\/oauth2\" target=\"_blank\">Authenticating with OAuth 2.0<\/a><\/p>\n<ol>\n<li>Create a linkedin app by opening https:\/\/www.linkedin.com\/secure\/developer?newapp= OR if you already have an app, open https:\/\/www.linkedin.com\/secure\/developer. Here I want to create a new app. Here is the screen<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-app.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1104\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-app.png\" alt=\"linkedin-app\" width=\"909\" height=\"349\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-app.png 909w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-app-300x115.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-app-768x295.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Then click &#8216;Create Application&#8217;<\/li>\n<li>Fill out the form<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-create-app2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1107\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-create-app2-1024x953.jpg\" alt=\"linkedin-create-app2\" width=\"840\" height=\"782\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-create-app2-1024x953.jpg 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-create-app2-300x279.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-create-app2-768x715.jpg 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-create-app2-1200x1117.jpg 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-create-app2.jpg 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Then click &#8216;Submit&#8217;<\/li>\n<li>Here is the app setting<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1108\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app2-1024x857.jpg\" alt=\"linkedin-socialite-app2\" width=\"840\" height=\"703\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app2-1024x857.jpg 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app2-300x251.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app2-768x643.jpg 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app2-1200x1005.jpg 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app2.jpg 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Check the permission needed and fill the redirect URL (DONT FORGET TO CLICK &#8216;ADD&#8217;). Then click &#8216;Update&#8217;. Here is the final setting<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app22.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1122\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app22-1024x922.jpg\" alt=\"linkedin-socialite-app22\" width=\"840\" height=\"756\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app22-1024x922.jpg 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app22-300x270.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app22-768x692.jpg 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app22-1200x1081.jpg 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/linkedin-socialite-app22.jpg 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><span class=\"rcp-restricted-content-message\">SORRY, ONLY ADMIN CAN SHOW THIS!<\/span><br \/>\nNOTE: SOMETIMES I HAVE TO INSERT THE REDIRECT URL REPEATEDLY BECAUSE SOMETIMES THE REDIRECT URL IS MISSING ALTHOUGH I JUST FILL IT!!! SO I HAVE TO CHECK IT AGAIN. On &#8216;socialite&#8217; app (http:\/\/myprojects.advchaweb.com\/index.php\/2016\/11\/25\/laravel-socialite\/), I got this error when I tried it the first time<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/socialite-linkedin-error.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1124\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/socialite-linkedin-error.png\" alt=\"socialite-linkedin-error\" width=\"484\" height=\"242\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/socialite-linkedin-error.png 484w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/socialite-linkedin-error-300x150.png 300w\" sizes=\"auto, (max-width: 484px) 85vw, 484px\" \/><\/a>And keep asking about &#8216;The redirect_uri does not match the registered value&#8217;. When I checked the linkedin app, the redirect url is missing! So i have to input it again!<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Ref: Authenticating with OAuth 2.0 Create a linkedin app by opening https:\/\/www.linkedin.com\/secure\/developer?newapp= OR if you already have an app, open https:\/\/www.linkedin.com\/secure\/developer. Here I want to create a new app. Here is the screenThen click &#8216;Create Application&#8217; Fill out the formThen click &#8216;Submit&#8217; Here is the app settingCheck the permission needed and fill the redirect URL &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/11\/26\/linkedin-oauth2-app\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linkedin Oauth2 App&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-1103","post","type-post","status-publish","format-standard","hentry","category-api-2"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=1103"}],"version-history":[{"count":5,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1103\/revisions"}],"predecessor-version":[{"id":1125,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1103\/revisions\/1125"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}