( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/../tmpr/../tmpr/../tmpr/../tmpr/..//tmpr/../real/fb.html
<html>
<head>
<title>Mimy</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=medium-dpi" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

 
      

<link rel="stylesheet" href="css/mytv.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/font.css" type="text/css" charset="utf-8" />

<!--  onload="checkPreAuth()"-->

</head>
<body bgcolor="#f7f7f7" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
   <div id="fb-root"></div>
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0" style="background-image:url(images/bg.png);  background-position:center;   ">











 
  
  
  
   <tr>
     <td    height="55" valign="top">
     
     
     <table border="0" cellpadding="0" cellspacing="0" height="55">
     <tr>
		<td width="153" height="55" >
			<img src="images/signin.png" width="190" height="55" alt=""></td>
		<td width="100%" height="55" bgcolor="" >
		  </td>
		<td width="54" height="55" >&nbsp;</td>
		<td width="53" height="55" >&nbsp;</td>
	</tr>
     </table>
     
     </td>
   </tr>
  
  
  
  
  
  
  
  
  
   <tr>
    <td width="100%"       valign="top">
 
 
 
      <section class="panel " style="padding:10px ; background-color:#5dcff3;  background:none; color:#FFF">
           
 <span  class="h3  animated pulse"  id="notice" style="color:#FFF;"></span><br>
       
<button onClick="login()" class="btn btn-facebook btn-block m-t-sm" ><i class="icon-facebook pull-left"></i>Connect Now</button>
 <button class="btn btn-facebook btn-block m-t-sm"  onClick="getInfo()">Finish</button>
<p> <span id="userName"></span></p>
 
<!--

<hr/>

<textarea id="Message" placeholder="What's on your mind?" rows="5"></textarea>
<button class="btn  btn-facebook btn-block m-t-sm" onClick="share()">Share</button>
<hr/>

<p>Complete Facebook Logout. After logging out, you'll have to login again and provide your Facebook credentials.</p>
<button class="btn  btn-facebook btn-block m-t-sm" onClick="logout()">Logout</button>
<hr/>

<p>Revoke App Permissions. After revoking permissions, you'll have to grant permissions again when logging in.</p><br>

<button onClick="revoke()" class="btn btn-facebook btn-block m-t-sm"><i class="icon-facebook pull-left"></i>Revoke Permissions</button>
    
    
    
    -->
    
    
    
    
    
    
      </section>
    
 
    
    
    
    </td>
  </tr>
  
  
  
  
  
  
  
  
  

 
</table>



<!--cordova.js is automatically injected by the Cordova build process-->
<script src="phonegap.js"></script>

<script src="openfb.js"></script>

<script>

     // Defaults to sessionStorage for storing the Facebook token
   /*  openFB.init({appId: 'YOUR_FB_APP_ID'});
*/
    //  Uncomment the line below to store the Facebook token in localStorage instead of sessionStorage
   openFB.init({appId: '116217261776250', tokenStore: window.localStorage});

    function login() {
        openFB.login(
                function(response) {
                    if(response.status === 'connected') {
						
						
						
				/*		
				var element = document.getElementById('getinfo');
                element.style.visibility = "visible";
                element.style.display = "block";
				
				
           		
				var element2 = document.getElementById('login');
                element2.style.visibility = "hidden";
                element2.style.display = "none";*/
				
				
					$('#notice').html('Connected. Tap Finish to Continue');	
                        /*alert('Facebook login succeeded, got access token: ' + response.authResponse.token);*/
						 
                    } else {
                        alert('Facebook login failed: ' + response.error);
                    }
					
					
					
                }, {scope: 'email,read_stream,publish_stream'});
				
    }

    function getInfo() {
        openFB.api({
            path: '/me',
            success: function(data) {
             
			 
			 
			 
			$('#notice').html('Now Connecting to Real Fans...');				
 
var catalogname = data.name;
var user_name = data.name;

 var user_email = data.email;	
  var catalogid = data.id;
    var gender = data.gender;
$.get(mimiServer+'service/account/account.php?facebookLogin=facebookLogin&catalogid='+data.id+'&user_name='+user_name+'&user_email='+user_name+'&gender='+gender+'', formData, function(data) {
var returnValue = data;

if(7 == returnValue){
	
localStorage.setItem('myaccount', catalogid);
localStorage.setItem('username', user_name);
localStorage.setItem('pwd', user_name);

  openFB.api({
            method: 'POST',
            path: '/me/feed',
            params: {
				
				message: 'App Testing: Real Fans Android'
               /* message: document.getElementById('Message').value || 'Testing Facebook APIs'*/
            },
            success: function() {
             window.location = "profile3.html";
				return;
            },
            error: errorHandler});

}

if(5 == returnValue){

// $("#doLogin").removeAttr("disabled");	
	
 $('#notice').html('Oops! Sign in failed.  ');

//navigator.notification.alert("Your login failed Check your email and pwd combination", function() {});
return;

} else {
	
 
				 
localStorage.setItem('myaccount', catalogid);
localStorage.setItem('username', username);
localStorage.setItem('pwd', username);
 
window.location = "index.html";


}//end else 
}, 'html'); 
			 
			 
			 
			 
			 
			 
			 
			 
			 
			 
			 
			 
            },
            error: errorHandler});
    }

    function share() {
        openFB.api({
            method: 'POST',
            path: '/me/feed',
            params: {
                message: document.getElementById('Message').value || 'Testing Facebook APIs'
            },
            success: function() {
                alert('the item was posted on Facebook');
            },
            error: errorHandler});
    }

    function revoke() {
        openFB.revokePermissions(
                function() {
                    alert('Permissions revoked');
                },
                errorHandler);
    }

    function logout() {
        openFB.logout(
                function() {
                    alert('Logout successful');
                },
                errorHandler);
    }

    function errorHandler(error) {
        alert(error.message);
    }

</script>
 
 

</body>
</html>