How to make login from social networks to my website.
Scenario: I have email and password login system. Now i want to integrate social networks login to my website.
Problem is: I have got api keys from google and fb but i am not getting how to integrate social networks with my web login credentials. pls provide the code
Rajkiran SwainPosted Jun 9, 2017, 5:50 AM
for Google
Integrating Google Sign-In into your web app
Create a Google Developers Console project and client ID.
Load the Google Platform Library
You must include the Google Platform Library on your web pages that integrate Google Sign-In.
Specify your app's client ID
Specify the client ID you created for your app in the Google Developers Console with the google-signin-client_id meta element.
Note: You can also specify your app's client ID with the client_id parameter of the gapi.auth2.init() method.
Add a Google Sign-In button
The easiest way to add a Google Sign-In button to your site is to use an automatically rendered sign-in button. With only a few lines of code, you can add a button that automatically configures itself to have the appropriate text, logo, and colors for the sign-in state of the user and the scopes you request.
To create a Google Sign-In button that uses the default settings, add a div element with the class g-signin2 to your sign-in page:
Anurag MauryaPosted Jun 9, 2017, 5:28 AM