Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do i use my own buttons for google login and facebook login?

This is my current code,
HTML
<span id="signinButton">
         <span
           class="g-signin"
           data-callback="signinCallback"
           data-clientid="XXXXXXXXXXXXXXXX"
           data-cookiepolicy="single_host_origin"
           data-requestvisibleactions="http://schema.org/AddAction"
           data-scope="https://www.googleapis.com/auth/plus.login">
         </span>
       </span><br />
           <fb:login-button  size="large" >  Sign   In </fb:login-button>


but these buttons are coming in different size. So i want to add two other buttons which will trigger these actions,
HTML
<input type="button" class="btn btn-primary" value=""Connect with facebook> //Clicking on this button should trigger fb:login-button
<input type="button" class="btn btn-danger" value=""Connect with Google>/Clicking on this button should trigger google button



I have seen some sites using their on buttons for google\facebook login.
How do i do this?
Posted

1 solution

If you are looking for logging in with external sites, try -
OAuth Signin[^]
Logging in using external sites[^]
ASP.NET Web API 2 external logins [^]
 
Share this answer
 
v2
Comments
Am Gayathri 20-Apr-15 3:37am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900