Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customizing Linkedin Login Button

I'm implementing LinkedIn Login into my web app.. I'm using following script as :

<script type="in/Login"> </script> 

to load the LinkedIn Sign In button. This script automatically loads a LinkedIn Sign in button with fix design or image..

but I want to Customize a button with my custom Image of LinkedIn and this button should generate the LinkedIn login event after clicking on it.. that is it should serve above script's purpose

Plz Help

like image 684
Sam Avatar asked Aug 27 '13 11:08

Sam


People also ask

Can you add a button to LinkedIn?

With the Add to Profile button, you can instantly add your professional accomplishment or degree to your LinkedIn profile. To integrate the Add to Profile button on your emails and certification website, visit the Add to Profile site.

What are custom button clicks on LinkedIn?

The Custom button clicks metric is the result of the number of clicks your custom (call-to-action) button received from Page visitors. Landing Pages analytics provide metrics on how Landing Pages is finding new talent for your company.

Where is custom button on LinkedIn?

To activate and choose your custom button feature, you want to make sure that you're on the admin view of your LinkedIn page. From here, you'll notice a small pencil icon beside the blue follow button. If you click on that pencil icon, it should pull up a dialogue box with an option to turn your custom button on.

Does LinkedIn have a custom CTA button?

Along with those buttons, LinkedIn also provides analytics, so you can see what kind of response your chosen CTA button gets. Beyond the primary “Follow” button, we’ve now added the ability to select a custom CTA button for your Page.

How do I add a social login button to my website?

On the main dashboard, add the domain name of the webpage where you will the social login button into ‘Domain & URL whitelist’ Click on 'Integrated APIs' on the left menu. On the 'Integration APIs' dashboard, click 'Add APIs'.

Is it possible to customize login pages now?

But there was a drawback: the way we would customize changed - and customizing the login pages seemed impossible. We can still create our own page templates, use Liquid for serverside programming and now we have to use more JQuery clientside programming for the last-mile customizations.

Is it possible to customize Microsoft Dynamics CRM login pages?

Then Microsoft gave us microsoftcrmportals.com - so easy to deploy and maintain, really lowering the treshold and making it an easy sell for customers who are ready to take the next step in digitizing their business. But there was a drawback: the way we would customize changed - and customizing the login pages seemed impossible.


2 Answers

Other way to do this:

  1. Place an image that you like:

    <a href=""><img onclick="liAuth()" src="./img/widget_signin.png"></a>
    
  2. Create JS function like this:

    function liAuth(){
       IN.User.authorize(function(){
           callback();
       });
    }
    
  3. Use LinkedIn user data:

    IN.API.Profile("me")
       .fields("firstName", "lastName", "headline")
       .result(resultFunction);
    
like image 179
Rostik Avatar answered Oct 22 '22 09:10

Rostik


Yes, it's possible. We're using jQuery, so here is our solution:

<script type="text/javascript" src="http://platform.linkedin.com/in.js">    
  api_key: apikey    
  onLoad: onLinkedInLoad    authorize: true
</script>

<script type="text/javascript">    
  function onLinkedInLoad() {        // Use a larger login icon. 
     $('a[id*=li_ui_li_gen_]').css({marginBottom:'20px'}) 
       .html('<img src="/images/shared/linkedin-register-large.png" height="31" width="200" border="0" />');    
  }
</script>
like image 28
Ajeesh Avatar answered Oct 22 '22 09:10

Ajeesh