LinkedIn Connect for Appcelerator Titanium

Recent Changes (all changes available in the same gist as another revision)

  • Modified the LinkedIn connect for new share API
  • Modified the Twitter connect part for new captcha verification, now user need to input the captcha in provided textbox he/she is seeing on screen

Hello everyone,

Recently I had a use-case to implement the Linkedin Connect with Appcelerator SDK, but unfortunately I’m unable to find the any plug-in or module to do that. I was already using one Titanium widget called social.js which is used to connect with twitter, though Twitter and Linkedin uses OAuth for the Authentication I planned to make some modifications on the Social.js, you can find the modified social.js CommonJS module here (https://gist.github.com/4320296). Require this module and you can easily authenticate with Linkedin and Twitter as well, by that you can post the contents to Linkedin and Twitter. Use the following code after importing social.js in your code base.

this social.js module is commonjs pattern so just require it by

LinkedIn Example

https://gist.github.com/rampicos/3b86a2ab466cddfa933e

 

Twitter Example

https://gist.github.com/rampicos/230476d230abde2ee714

remember you have twitter.deauthorize(); and linkedin.deauthorize(); functions are available to deauthorize

Social.js By – Ramkumar M

33 thoughts on “LinkedIn Connect for Appcelerator Titanium

  1. Hi,

    Social.js is working but am facing one problem. If I click close button the first winodw closed but second window is not closing. Please any one guide me to solve this issue.

      1. Hi SImbu,

        Could you resolve the problem with the ‘second window not closing’. Since your post is the most recent one I ask you. I’m facing exactly the same problem

  2. Hi Ram, I tried the process what you mentioned above. But still I am getting an error like below :

    ERROR] : Social.js: FAILED to getRequestToken!

    [ERROR] : oauth_problem=timestamp_refused&oauth_acceptable_timestamps=1443531929%2B-900

    When I launch the application I got an error alert with a message “Did not get access token now” and from there application is not working. Can you share the possible solution for this. Is there any other way to share data on linkedin with out using social.js

    1. @ravindrachaitanyaprasadmukk:disqus can you check the timezone settings (and time settings) of your mobile.. The oAuth fails if the timezone mismatches with your mobile and data timezone.. Kindly try and let me know..

  3. Hey everyone, I updated the social.js and it is available on the same gist link.. Updates include for LinkedIn & Twitter, Which works fine to me.. For Twitter added a Textbox where the user need to input the captcha shown to the user by twitter Thanks @nagaharish:disqus

    1. Using 5.0.0.GA.

      iOS can’t click on X to close window (See attached)
      iOS can’t type in linkedin’s textboxes (at least simulator).
      Android (works) but doesn’t close webviews gracefully

  4. Hi Ramkumar,
    I have used your socialjs module for twitter in titanium. It worked fine for me. I can login successfully twitter credential. But after login I need user profile information of user like email, username , profile pic etc. Can you please let me know how can I get this information.

    Thanks in advance.

Leave a Reply