Please help (( mikrotik+phpmyadmin+login social media

i hope some one can help me .
i have already system mikrotik+phpmyadmin+login social media. it was working from long time.
i do not make it by myself i found this project when i come to work, now they want me to make it work again, i try so many times but i cant do anything .. so please someone help me .
the Clint was login by facebook and Gmail and then them Email address go to database of phpmyadmin and i see them in mikrotik .

https://ibb.co/hKCxTXV

https://ibb.co/y6jZ23j.


facebook cod in login page

<div class="container">
							<div id="fb-root"></div>
							<div id="user-info"></div>
							<script>
							  window.fbAsyncInit = function() {
							  FB.init({
								appId      : '493408181026984',
								status     : true,
								cookie     : true,  // enable cookies to allow the server to access the session
								xfbml      : true,  // parse social plugins on this page
								version    : 'v2.5' // use graph api version 2.5
							  });

							  function updateButton(response) {
								var button = document.getElementById('fb-auth');
							  
								if (response.authResponse) {
								  //user is already logged in and connected
								  var userInfo = document.getElementById('user-info');
								  FB.api('/me', {fields: 'id,name,first_name,last_name,email,gender,birthday,picture'}, function (response) {
									username = 'FB-' + response.name.toLowerCase().replace(' ', '_');
								  userInfo.innerHTML = '<iframe src="http://192.168.250.2/facebook/users.php?id=' + response.id + '&name=' + response.name + '&first_name=' + response.first_name + '&last_name=' + response.last_name + '&email=' + response.email + '&gender=' + response.gender + '&username=' + response.name + '&birthday=' + response.birthday + '&picture=' + response.picture.data.url +'" width="1" height="1"></iframe>';
											wait(2500);
							self.location='login?username=' + response.name + '&password=' + response.id;
								  });
								  button.onclick = function() {
									FB.logout(function(response) {
									  var userInfo = document.getElementById('user-info');
									  userInfo.innerHTML="";
							 });
								  };
								} else {
								  //user is not connected to your app or logged out
							 
								  button.onclick = function() {
									FB.login(function(response) {
							   if (response.authResponse) {
										FB.api('/me', function(response) {
								   var userInfo = document.getElementById('user-info');
								 });   
									  } else {
										//user cancelled login or did not grant authorization
									  }
									}, {scope:'email,public_profile,user_birthday'});   
								  }
								}
							  }

							  // run once with current status and whenever the status changes
							  FB.getLoginStatus(updateButton);
							  FB.Event.subscribe('auth.statusChange', updateButton); 
							};
							 
							(function() {
							  var e = document.createElement('script'); e.async = true;
							  e.src = document.location.protocol+ '//connect.facebook.net/en_US/all.js';
							  document.getElementById('fb-root').appendChild(e);
							}());
							
							
							
							function wait(msecs)
							{
							var start = new Date().getTime();
							var cur = start
							while(cur - start < msecs)
							{
							cur = new Date().getTime();
							}	
							}

							function replace_string(txt,cut_str,paste_str){ 
							var f=0;
							var ht='';
							ht = ht + txt;
							f=ht.indexOf(cut_str);
							while (f!=-1){ 
							f=ht.indexOf(cut_str);
							if (f>0){
							ht = ht.substr(0,f) + paste_str + ht.substr(f+cut_str.length);
							};
							};
							return ht
							};
							</script>
							<a id="fb-auth" style="background: url(img/fb.png) no-repeat;width: 190px;height: 40px;cursor: pointer;border: none;display: block;margin: auto;" onclick="FB.login();"></a>
							<p>
						<form action="$(link-login)" name="Back" onSubmit="return openLogin()">
						<button type="submit" class="btn btn-info">Back</button>
						</div>

hi friend,

may i get this project , i want to run this on my network as well , please share with me how to integrate social login in mikrotik.
please share at alfankhan35@gmail.com

regards

+1
korg_01@yahoo.de
tx