LinkedIn popup redirecting to home page instead to authenticate popup

6 posts / 0 new
Last post
Joined: 05/11/2011
Tue, 08/02/2011 - 05:07
LinkedIn popup redirecting to home page instead to authenticate popup

Hi,

I was trying to use JSAPI for my appln integration with LinkedIn,

I am using : IN.UI.Authorize().place(); to authorize(to open popup) the user.

when user click on a link, calling this function which has the above code, when the fucntion invoked the popup opens with the address as https://platform.linkedin.com/js/xdrpc.html?v=0.0.1128-RC2.7511-1337&cac...
then redirecting to http://www.linkedin.com/home?goback= (which is a home link)

i have created my own api key, and provided the js domain as http://localhost:7101,http://127.0.0.1:7101,http://localhost

i also tried with single entry which is http://127.0.0.1:7101 and also with http://localhost:7101, either one showing the same issue.

Iam able to access my application locally by using either http://127.0.0.1:7101 or http://localhost:7101 in chrome browser.

in firefox its not opening any popup

Please suggest me, if iam missing anything here to get the popup opened to authorize the user.

thanks in advance...

-Shivaji

Jeremy Johnstone's picture
Developer Advocate
Joined: 04/17/2011
Wed, 08/03/2011 - 13:03

Hi Shivaji,

The issue is that you shouldn't be calling IN.UI.Authorize.place() directly as it's a "private" method. The right method to call to trigger the authorization process is IN.User.Authenticate(). Calling it should get you the intended behavior you are looking for.

-Jeremy

Joined: 05/11/2011
- (Reply to #2) Thu, 08/04/2011 - 05:12

Thanks Jeremy for your reply!

I had tried with IN.User.authorize() assigning a call back function, i was able to open authentication window/popup.

1. Could you please provide me if i want to check whether the user is authenticated through out the session in my application(like in each page i would like to check this). I have used IN.User.isAuthorized() but it returning false, when i check in next page of my appln.

please let me know if any thing missing.

Thanks in advance!
-Shivaji

Jeremy Johnstone's picture
Developer Advocate
Joined: 04/17/2011
- (Reply to #3) Thu, 08/04/2011 - 11:30

Are you adding "authorize: true" inside the script tag along side your api key? If not, then the framework doesn't automatically authenticate the user on subsequent pages.

Joined: 02/22/2012
Wed, 02/22/2012 - 01:26

i created website. how can i authenticate linked in from website

Kirsten Jones's picture
Joined: 06/30/2011
Wed, 02/22/2012 - 09:20