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
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.
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.
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.
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.
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'.
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.
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.
Other way to do this:
Place an image that you like:
<a href=""><img onclick="liAuth()" src="./img/widget_signin.png"></a>
Create JS function like this:
function liAuth(){
IN.User.authorize(function(){
callback();
});
}
Use LinkedIn user data:
IN.API.Profile("me")
.fields("firstName", "lastName", "headline")
.result(resultFunction);
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With