rodzeus
Posts: 0
Joined: Fri Feb 21, 2014 6:28 pm

LinkedIn plugin oAuth redirect

I am not able to get the LinkedIn plugin working. I am using this tutorial http://blog.appery.io/2013/04/get-acc... .

I am testing on an iPhone 5 by taking a screenshot of the QR code. This is the redirect it gives me - please see attached screenshot - filename:redirect.png

I know it is the redirect parameter "http://appery.io/mobile" that isnt working in the LinkedIn settings because when I substitute with http://google.com I am redirected to Google after I enter my LinkedIn credentials. Can you please fix this? Also, what am I supposed to see? Thanks.
Image

rodzeus
Posts: 0
Joined: Fri Feb 21, 2014 6:28 pm

LinkedIn plugin oAuth redirect

Please note: I am logged in to Appery.io on my iPhone. And this problem occurs even when I uncheck "Use Appery.io proxy: 2217515" in the LINKEDIN_GetToken settings.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

LinkedIn plugin oAuth redirect

Hello,

Following steps should help:

1 Add linkedIn plugin.

2 Open "Services"-"LINKEDIN_Settings". You will get it:
Image
you need to populate this settings by your values:

2.1 "client_id" - get it from linkedIn admin.

2.2 "state" - just paste there long unique string.

2.3 "redirect_url" - put here a public link to your "LINKEDIN_loginPage.html" page.

2.4 "client_secret" - get it from linkedIn admin.

3 make your "LINKEDIN_loginPage" as start page.

Note: After authorization you will be redirect to the same page "LINKEDIN_loginPage.html".

rodzeus
Posts: 0
Joined: Fri Feb 21, 2014 6:28 pm

LinkedIn plugin oAuth redirect

Hi Igor, I had done all the above 2.1 to 2.4 correctly. As for point #3 - I am doubtful what you mean by "your LINKEDIN_loginPage"? Where do I find this page?

What I am trying to achieve in my app is not for the user to simply view his own LinkedIn profile page on a mobile device, as it looks on a browser by going to http://linkedin.com. What I am trying to achieve in the app is for the user to be able to search for contacts by last name, first name, company. I believe this is exactly why the LinkedIn AP exists...

Regards
Rajeev

rodzeus
Posts: 0
Joined: Fri Feb 21, 2014 6:28 pm

LinkedIn plugin oAuth redirect

This is what the LinkedIn developers website says - that the redirect should be back to my own app..please see attached screenshot.

Thanks.
Image

rodzeus
Posts: 0
Joined: Fri Feb 21, 2014 6:28 pm

LinkedIn plugin oAuth redirect

What I want the user to see upon successful authentication is a new page in the same app that allows the user to search for a colleague by company name. So the redirect should take the user to a new page in the same app. Problem is, I do not know the url of the new page, as the WySIWYG interface does not give me the URLs of pages inside an app. How do I do this using Appery.io in a native iOS or Android app, where URLs are not visible? Thanks.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

LinkedIn plugin oAuth redirect

Hi -

We are working on it.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

LinkedIn plugin oAuth redirect

"LINKEDIN_loginPage" is a predefined by linkedIn plugin page, so you have to see it in your side panel.

Please take a look on this screenshot: http://i61.tinypic.com/2dulf6s.png

You should start login on linked for beginning.

After you will success the login you can implement login on your own page by this page example.

Regards.

rodzeus
Posts: 0
Joined: Fri Feb 21, 2014 6:28 pm

LinkedIn plugin oAuth redirect

Hi Illya, I took a look at the screenshot you sent me. I then used the LINKEDIN_loginPage as the parameter in the redirect_url field. When I tested the result using my mobile phone, all this does is take the user back to his own LinkedIn home page, just as if he is viewing his LinkedIn profile in Safari. This is not what I want.

What I want is to take the user to another page in the app, such as a page called boom1, which is the name of a page in my app. Please see screenshot of LINKEDIN_settings. How do I do this? When I specify boom1, it still takes the user to his own LinkedIn home page.

Please help.
Thanks
Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

LinkedIn plugin oAuth redirect

Hello,

Autentification for LinkedIn through this plugin occurs as follows:

1 Load http://appery.io/app/view/xxxxxxxx/LI... page.

2 User clicks on "Login with linkedIn"

3 Load linked in auth page. User enter credentials and click "Allow access"

4 Loads http://appery.io/app/view/xxxxxxxxxx/... page and now application is "LogedIn" to LinkedIn.

When you succeed with above steps you can modify the processing as your need (for example, navigate to "boom1" page)..

Return to “Issues”