это мой сайт плз попробуйте в этом коде я добавил Google для входа в аккаунт, но не работает фейсбук работает, но для входа в аккаунт с просьбой что-то я не могу позволить себе, как сертификат на сайте iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://apis.google.com/js/platform.js" async differ></script>
<meta name="google-signin-client_id" content="731404588062-kc29krockq357sefj04hps4cbtujo8ki.apps.googleusercontent.com">
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v4.0&appId=2464014297008306&autoLogAppEvents=1"></script>
<div class="wrapper row3">
<div id="container">
<!-- ################################################################################################ -->
<div id="homepage" class="clear">
<div class="two_third first">
<div class="push30"><img
src="images/snal/six_figure_mentors_mission.jpg" alt="" width="1200"
height="400"></div>
<!-- #### -->
<div class="divider2"></div>
<!-- #### -->
<div class="two_third first">
<article class="push30 clear">
<h2 class="nospace font-medium">Registration</h2>
<p>
<?php
if(isset($message))
{
echo "<strong>$message</strong>";
}
?>
<form name="indexform" method="post" action="" class="rnd5"
onsubmit="return validate()" >
<input type="hidden" name="setid" value="<?php echo
$_SESSION["setid"]; ?>">
<label class="one_third first" for="author">Username:
</label> <input name=username type=text />
<label class="one_third first" for="author">Firstname:
</label> <input name=firstname type=text />
<label class="one_third first" for="author">Lastname:</label>
<input type=text name=lastname />
<label class="one_third first" for="author">email id: </label>
<input type=text name=emailid />
<label class="one_third first" for="author">password:</label>
<input type=password name="password" />
<label class="one_third first" for="author">re-enter password:
</label> <input type=password name=confirmpassword />
<label class="one_third first" for="author">DOB: <input
type="date" name="dob" /></label>
<br>
<table >
<tr><td>gender:</td>
<td> female</td> <td> <input type=radio name=gender value="Female"
/> </td>
<td> male</td> <td><input type=radio name=gender value="Male" /></td>
</tr>
</table>
<label class="one_third first" for="author"><input name=signup type=submit
value="Register" class="button small gradient red" /></label>
<div>
<p> OR</p>
<div class="g-signin2" data-longtitle="true" data-onsuccess = "onSignIn"
data-theme="light" data-width="200"></div>
<div class="fb-login-button" data-width="" data-size="medium" data-button-
type="login_with" data-auto-logout-link="false" data-use-continue-
as="false"onlogin="checkLoginState();"></div>
</div>
</form>
иэто код JavaScript
function onSignIn(googleUser) {
var id_token = googleUser.getAuthResponse().id_token;
console.log("ID Token: " + id_token);
var profile = googleUser.getBasicProfile();
console.log("Email: " + profile.getEmail());
console.log('Full Name: ' + profile.getName());
$.post('userData.php', {name:Full Name,email:Email,accesstoken:ID
Token,'action':'2'}, function(data){
if(data=='1')
{
window.location= "dashboard.php";
}else
{
alert('something goes wrong');
}
});
}