Level 6 license?the procedure that fewi describes indicates that this is to be done externally, so if one of you can write a solution and post on the wiki, you will receive a license and everyone will have the solution they wanted.
means that the network admin has the username and password of the user that can be use to get through their facebook account.. ?a page under your control that uses the MT API to create equivalent usernames/passwords locally on the MT, then redirect to the hotspot and login with those credentials
Nice, I'm willing to help so contact me if you need extra hands. here is my mail: podrska(at)tm2.hrAlways appreciate some Karma, hopefully get some more when we post the Email Address or Facebook Like for access to trial script. It'll be a month. But it's coming.
Cheers
[admin@MikroTik] > /ip hotspot walled-garden print
Flags: X - disabled, D - dynamic
# SERVER METHOD DST-HOST DST-PORT PATH
0 X ;;; place hotspot rules here
1 hotspot.catena.si*
2 hotspot1 *facebook.com* 443
3 hotspot1 *.facebook.com* 80
4 hotspot1 *akamaihd.net* 443
5 hotspot1 *akamaihd.net* 80
[admin@MikroTik] > /ip hotspot walled-garden ip print
Flags: X - disabled, I - invalid
# SERVER PROTOCOL DST-HOST DST-ADDRESS DST-PORT ACTION
0 I hotspot1 tcp www.facebook.com* 443 accept
1 I hotspot1 tcp www.facebook.com* 80 accept
2 I hotspot1 tcp *akamaihd.net* 443 accept
3 I hotspot1 tcp *akamaihd.net* 80 accept
Is this counted if I write my sample?.... so if one of you can write a solution and post on the wiki, you will receive a license and everyone will have the solution they wanted.
Hello ,Anyway here I made some tutorial for what I've done,
here is the link:
http://blog.dyasrtrw.net/2013/04/login- ... ebook.html
It's using Bahasa (Indonesia Language), so if you want to read it in English, use Google translate
Or click here to auto translate to English,
Hello.. thanks for giving feedback about my work.Hello ,Anyway here I made some tutorial for what I've done,
here is the link:
http://blog.dyasrtrw.net/2013/04/login- ... ebook.html
It's using Bahasa (Indonesia Language), so if you want to read it in English, use Google translate
Or click here to auto translate to English,
I follow your tutorial , but no lucky. I put user.php and routeros class API in web server , login.html inside hotspot directory of MT. I can create a new user inside MT , but no authentications inside MT.
Web server with FQDN , MT with public static IP on different address. FB application with correct parameters. I think that in your tutorial forgot same step.
Can you help me ?
Can you publish here the correct login.html file and user.php ?
Thank's in advance.
p.s. I try a new way with external captive authentication .
# SERVER PROTOCOL DST-HOST DST-ADDRESS DST-PORT ACTION
0 hotspot1 tcp www.facebook.com 443 accept
1 hotspot1 tcp www.facebook.com 80 accept
2 hotspot1 tcp connect.facebook.net 443 accept
3 hotspot1 tcp connect.facebook.net 80 accept
4 hotspot1 tcp *.facebook.com 443 accept
5 hotspot1 tcp *.facebook.com 80 accept
6 hotspot1 tcp *.akamaihd.net 443 accept
7 hotspot1 tcp *.akamaihd.net 80 accept
Hello ,Just put the dst host dst port and protocol into walled garden ip list. I think thats it!
Errr... I'd like to ask..login.php make a redirection to hotspot with access .
login.php :
<?php
$mac=$_POST['mac'];
$ip=$_POST['ip'];
$username=$_POST['username'];
$linklogin=$_POST['link-login'];
$linkorig=$_POST['link-orig'];
$error=$_POST['error'];
$chapid=$_POST['chap-id'];
$chapchallenge=$_POST['chap-challenge'];
$linkloginonly=$_POST['link-login-only'];
$linkorigesc=$_POST['link-orig-esc'];
$macesc=$_POST['mac-esc'];
$trial=$_POST['trial'];
?>
...........
<div id="footer">
Dyas RTRWnet © 2013.- airLAN contribution</a>
</div>
</div>
</body>
</html>
login.html ( put in hotspot dir of MT ) :
<html>
<head><title>........</title></head>
<body>
$(if chap-id)
<noscript>
<center><b>JavaScript required. Enable JavaScript to continue.</b></center>
</noscript>
$(endif)
<center>If you are not redirected in a few seconds, click 'continue' below<br>
<form name="redirect" action="http://YOUR_WEB_SERVER_IP/login.php" method="post">
<input type="hidden" name="mac" value="$(mac)">
<input type="hidden" name="ip" value="$(ip)">
<input type="hidden" name="username" value="$(username)">
<input type="hidden" name="link-login" value="$(link-login)">
<input type="hidden" name="link-orig" value="$(link-orig)">
<input type="hidden" name="error" value="$(error)">
<input type="hidden" name="chap-id" value="$(chap-id)">
<input type="hidden" name="chap-challenge" value="$(chap-challenge)">
<input type="hidden" name="link-login-only" value="$(link-login-only)">
<input type="hidden" name="link-orig-esc" value="$(link-orig-esc)">
<input type="hidden" name="mac-esc" value="$(mac-esc)">
<input type="hidden" name="trial" value="$(trial)">
<input type="submit" value="continue">
</form>
<script language="JavaScript">
<!--
document.redirect.submit();
//-->
</script></center>
</body>
</html>
Hello aleprolit, thank you for developing this script with PHP-PEAR2 and collaborating with user manager.This archive contain Facebook integration to MT hotspot with UM
<?php
$mac=$_POST['mac'];
$ip=$_POST['ip'];
$username=$_POST['username'];
if ($username === 'undefined') {
$username = '';
}
$linklogin=$_POST['link-login'];
$linkorig=$_POST['link-orig'];
$linkloginonly=$_POST['link-login-only'];
$chapid = $_POST['chap-id'];
$chapchallenge = $_POST['chap-challenge'];
//$chapid=clear($_POST['chap-id']);
//$chapchallenge=clear($_POST['chap-challenge']);
$linkorigesc=$_POST['link-orig-esc'];
$macesc=$_POST['mac-esc'];
$trial=$_POST['trial'];
$error=$_POST['error'];
function clear($code) { return str_replace('\\\\', '\\', $code); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Language' content='lt' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<title>Free HotSpot | Login Facebook</title>
<link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon">
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
<link href="css/style.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.button
{
background: url(fb.png) no-repeat;
width: 100px;
height: 30px;
cursor:pointer;
border: none;
}
</style>
</head>
<body>
<div id="fb-root"></div>
<div id="user-info"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId: '{YOUR API ID}',
channelUrl : '//YOUR HOST NAME/api/channel.html',
status: true,
cookie: true,
xfbml: true,
oauth: true});
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', function(response) {
old_pass = response.email;
temp_pass = replace_string(old_pass,'@','A') ;
new_pass = replace_string(temp_pass,'.','T') ;
// userInfo.innerHTML = '<iframe src="http://YOUR HOST NAME/api/user.php?mac=<?php echo $_POST['mac']; ?>&user=' + response.email + '&nama=' + response.name + '" width="1" height="1"></iframe>';
// userInfo.innerHTML = '<iframe src="http://YOUR HOST NAME/api/user-um.php?mac=<?php echo $_POST['mac']; ?>&user=' + response.email + '&nama=' + response.name + '&password=' + new_pass + '" width="1" height="1"></iframe>';
document.useradd.user.value = response.email;
document.useradd.nama.value = response.name;
document.useradd.password.value = response.name;
document.useradd.submit();
wait(8000);
//self.location ='<?php echo $linkloginonly; ?>?dst=<?php echo $linkorig; ?>&password=' + response.name + '&username=' + response.email ;
document.login.username.value = response.email;
document.login.password.value = response.name;
document.login.submit()
});
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'});
}
}
}
// 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+ '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>
</center>
<div id="content">
<p><h4><font color="#000000">Hotspot Free with Facebook.</font></h4></p>
<button id="fb-auth" class="button"></button>
<br />
<br />
<font color="#000000" size="-1"><i>Working on pc/laptop</i></font><br />
<!-- $(if error) -->
<div style="color: #FF8080; font-size: 11px"><?php echo $error; ?></div>
<!-- $(endif) -->
</div>
<br />
<div id="footer">
<font color="#000000">Auksela Free Net © 2013.</font></a>
</div>
</div>
<!-- $(if chap-id) -->
<form name="sendin" id="sendin" action="<?php echo $_POST['link-login-only']; ?>" method="post">
<input type="hidden" name="username" />
<input type="hidden" name="password" />
<!--
<input type="hidden" name="error" />
-->
<input type="hidden" name="dst" value="<?php echo $_POST['link-orig']; ?>" />
<input type="hidden" name="popup" value="true" />
</form>
<script type="text/javascript" src="./md5.js"></script>
<script type="text/javascript">
<!--
function doLogin() {
<?php if(strlen($chapid) < 1) echo "return true;\n"; ?>
document.sendin.username.value = document.login.username.value;
document.sendin.password.value = hexMD5('<?php echo $_POST['chap-id']; ?>' + document.login.password.value + '<?php echo $_POST['chap-challenge']; ?>');
document.sendin.submit();
return false;
}
//-->
</script>
<!-- $(endif) -->
<!-- removed $(if chap-id) $(endif) around OnSubmit -->
<form name="login" id="login" action="<?php echo $_POST['link-login-only'];?>" method="post" onSubmit="return doLogin()" >
<input type="hidden" name="dst" value="<?php echo $_POST['link-orig']; ?>" />
<input type="hidden" name="popup" value="true" />
<!--
<input type="hidden" name="error" value="<?php echo $_POST['error']; ?>" />
-->
<input type="hidden" name="username" value=""/>
<input type="hidden" name="password" value=""/>
<!--
<input type="submit" value="Connect" />
-->
</form>
<form name="useradd" id="useradd" action="user-um.php" method="post">
<input type="hidden" name="user" value=""/>
<input type="hidden" name="nama" value=""/>
<input type="hidden" name="mac" value="<?php echo $_POST['mac']; ?>" />
<input type="hidden" name="password" value=""/>
<!--
<input type="submit" value="Connect" />
-->
</form>
// path below is commented , uncoment it if you want popup windows error.php which show links to register and activate permanent account
<!--
<script type="text/javascript">
<!--
var a = "<?php echo $_POST['error'] ?>";
if(a !== "")
{
window.open('http://YOUR HOST NAME/erros/error.php?mac=<?php echo $mac; ?>&link=<?php echo $linkloginonly; ?>&user=<?php echo $username; ?>&error=<?php echo $error; ?>','','width=500,height=350,scrollbars=yes');
}
//-->
<!--
</script>
-->
</body>
</html>
<?php
namespace PEAR2\Net\RouterOS;
include_once '../src/php/PEAR2/Autoload.php';
include 'param.common.php';
//../include_once 'PEAR2_Net_RouterOS-1.0.0b3.phar';
?>
<?php
$user=$_POST['user'];
$mac=$_POST['mac'];
$nama=$_POST['nama'];
//$password=md5(md5($_POST['user']));
//$password=$_POST['user'];
$password=$_POST['password'];
//$password=$_POST['nama'];
$txt1 = ' ';
$profile = 'Trial';
$location = 'Your location';
$location = $location.$txt1.$mac;
$customer = 'facebook';
$comment = $nama.$txt1.$mac;
$comment1 = 'Added by Facebook';
$client = new Client($host,$admin,$pass);
//------------------
try {$printRequest = new Request('/system clock print');
//------
$array=$client->sendSync($printRequest)->getAllArguments(array(
'date' => 'date',
'time'=> 'time'));
//------
$comment1 = $array['date'].$txt1.$array['time'].$txt1.$comment1;
$comment = $array['date'].$txt1.$array['time'].$txt1.$comment;
$printRequest = new Request('/tool user-manager user print');
$printRequest->setQuery(Query::where('name',$user));
$array=$client->sendSync($printRequest)->getAllArguments(array('.id' => '.id',
'actual-profile' => 'actual-profile',
'last-seen' => 'last-seen',
'uptime-used' =>'uptime-used',
'download-used' => 'download-used',
'upload-used' => 'upload-used',
'comment' => 'comment'));
//----
if (null !== $array['.id'] ) {
echo "User {$user} already registered in system!<br>";
if (null !== $array['actual-profile'] ) {
echo "User {$user} reached time limit!<br>";
} else {
//--- Reset counters
$setRequest = new Request('/tool user-manager user reset-counters');
$setRequest->setArgument('numbers',$array['.id']);
$client->sendSync($setRequest);
echo "All counters for {$user} Id {$array['.id']}successfully reseted!!!<br>";
//--- Create and activate profile
$addRequest = new Request('/tool user-manager user create-and-activate-profile');
$addRequest->setArgument('customer',$customer);
$addRequest->setArgument('numbers',$array['.id'] );
$addRequest->setArgument('profile',$profile);
$client->sendSync($addRequest);
//---add comment
$setRequest = new Request('/tool user-manager user comment');
$setRequest->setArgument('numbers',$array['.id']);
$setRequest->setArgument('comment',$comment1);
if ($client->sendSync($setRequest)->getType() !== Response::TYPE_FINAL) {
echo "Error when aactivated '{$user}'.<br>";
} else {
echo "User {$user} successfully activated!!!<br>";
}
}
} else {
//--- Add user
$addRequest = new Request('/tool user-manager user add');
$addRequest->setArgument('customer', $customer);
$addRequest->setArgument('name', $user);
$addRequest->setArgument('first-name', $nama);
$addRequest->setArgument('last-name', $nama);
$addRequest->setArgument('location', $location);
$addRequest->setArgument('email', $user);
$addRequest->setArgument('password', $password);
$addRequest->setArgument('phone','370');
$addRequest->setArgument('disabled', no);
$addRequest->setArgument('comment', $comment);
$addRequest->setArgument('shared-users', 1);
if ($client->sendSync($addRequest)->getType() !== Response::TYPE_FINAL) {
echo "Error when added user for '{$nama}'.<br>";
} else {
echo "Comment: '{$comment}'. User'{$user}' successfully added!.";
}
//--- Create and activate profile
$printRequest = new Request('/tool user-manager user print');
$printRequest->setArgument('.proplist', '.id');
$printRequest->setQuery(Query::where('name', $user));
$userId = $client->sendSync($printRequest)->getArgument('.id');
$addRequest = new Request('/tool user-manager user create-and-activate-profile');
$addRequest->setArgument('customer', $customer);
$addRequest->setArgument('numbers', $userId );
$addRequest->setArgument('profile', $profile);
$client->sendSync($addRequest);
$setRequest = new Request('/tool user-manager user comment');
$setRequest->setArgument('numbers', $userId );
$setRequest->setArgument('comment', $comment1);
if ($client->sendSync($setRequest)->getType() !== Response::TYPE_FINAL) {
echo "Error when aactivated '{$user}'.<br>";
} else {
echo "Comment: '{$comment}'. User'{$user}' successfully added!!.";
echo "User {$user} successfully activated!!!<br>";
}
}
} catch(Exception $e) {
echo $e;
}
?>
<?php
$link=$_GET['link'];
$error=$_GET['error'];
?>
<head>
<meta name="verify-webtopay" content="{Your pass in payment system}">
<meta http-equiv='Content-Language' content='lt' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<link rel="stylesheet" type="text/css" href="css.css">
<font color=red size="5" ><b><?php echo $error; ?>!</b></font>
<br />
<font color=red><b>For permanent use online,</b></font>
<br>
<font color=red><b>*1.</b></font>You must to create user, see link below,<br>
complete form and click "Add user".<br>
<font color=red><b>*2.</b></font>After user creation it must be activated: link<br>
"User activation", read all instruction and follow it.<br>
<font color=red><b>*3.</b></font>If If Your user already exist and you have no credits,<br>
follow link "Buy credits",<br>
read all instruction and follow it..<br />
<!--
<font color=red><b>Important!</b></font> If you do not use a long time, it is necessary to check <br>
account via a link on the bottom, <br>
as subscribers inactive over 60 days are removed from the system <br>
automatically. <br />
-->
<?php
include "links.php";
?>
<body>
<script type="text/javascript" charset="utf-8">
var wtpQualitySign_projectId = {YOUR ID IN PAYMENT SYSTEM};
var wtpQualitySign_language = "lt";
</script>
<script src="https://www.webtopay.com/new/js/project/wtpQualitySigns.js" type="text/javascript" charset="utf-8"></script>
</body>
<br>
<a href="#" style="text-decoration:none; font-family: Tahoma;" onclick="window.open('../reg/check-user.php?mac=<?php echo $_GET['mac'];?>&phone=Your phone number.','','width=500,height=420,scrollbars=yes');return false;" title="User add"><b style='color:white'>* User add.</b><br></a>
<a href="#" style="text-decoration:none; font-family: Tahoma;" onclick="window.open('./redirect.php?link=<?php echo $link; ?>&phone=Your phone number.','','width=500,height=420,scrollbars=yes');return false;" title="User add"><b style='color:white'>* Create automatic connection.</b><br></a>
<!--
<a href="#" style="text-decoration:none; font-family: Tahoma;" onclick="window.open('../check/index.php?phone=37000000000&user=<?php echo $_GET['user']; ?>','','width=500,height=420,scrollbars=yes');return false;" title="Check user"><b style='color:white'>* Check user.</b><br></a>
-->
<a href="#" style="text-decoration:none; font-family: Tahoma;" onclick="window.open('../payment/svitch.php?phone=37000000000&mac=<?php echo $_GET['mac'];?>&user=<?php echo $_GET['user'];?>','','width=500,height=420,scrollbars=yes');return false;" title="Activate user or Buy credit"> <b style='color:white'>* Activate user or Buy credit.</b> </a><br>
//------1-----
Login by "Facebook":
<a href="#" style="text-decoration:none; font-family: verdana; color: #FF0000" onclick="select();return false;" title="Facebook."> Click here</a>
</p>
//-----1 end---
//-----2----
// and function select() - redirect non hotspot user ( external ) to another page insted facebook login
<script type="text/javascript">
<!--
function select()
{
var link = "<?php echo $_POST['link-login-only'] ?>";
if(link !== "")
{
document.redirect.submit();
} else {
window.open('/facebook.html','','width=500,height=350,scrollbars=yes');
}
}
//-->
</script>
//----2 end---
//----3-------
// and hidden form which call facebook login.php page in directory apy
<form name="redirect" action="../api/login.php" method="post">
<input type="hidden" name="mac" value="<?php echo $_POST['mac']; ?>">
<input type="hidden" name="ip" value="<?php echo $_POST['ip']; ?>">
<input type="hidden" name="username" value="<?php echo $_POST['username']; ?>">
<input type="hidden" name="link-login" value="<?php echo $_POST['link-login']; ?>">
<input type="hidden" name="link-orig" value="<?php echo $_POST['link-orig']; ?>">
<input type="hidden" name="error" value="<?php echo $_POST['error']; ?>">
<input type="hidden" name="chap-id" value="<?php echo $_POST['chap-id']; ?>">
<input type="hidden" name="chap-challenge" value="<?php echo $_POST['chap-challenge']; ?>">
<input type="hidden" name="link-login-only" value="<?php echo $_POST['link-login-only']; ?>">
<input type="hidden" name="link-orig-esc" value="<?php echo $_POST['link-orig-esc']; ?>">
<input type="hidden" name="mac-esc" value="<?php echo $_POST['mac-esc']; ?>">
//------3 end---------
//------4------------
//this path open popup window if error occured and show useful links: create, activate and check permanent user. - see abow in my post.
<script type="text/javascript">
<!--
var a = "<?php echo $_POST['error'] ?>";
if(a !== "")
{
window.open('http://YOUR HOST NAME/errors/error.php?mac=<?php echo $mac; ?>&link=<?php echo $linkloginonly; ?>&user=<?php echo $username; ?>&error=<?php echo $error; ?>','','width=500,height=350,scrollbars=yes');
}
//-->
</script>
//-------4 end-------
Yes you can. just create a user profile and make uptime limit for (example) 30 minutes.can i use this method for trial user?
nopedoes the router must have a public IP?
On Login Page from Mikrotik
Redirect to web-server to login facebook
Login to Facebook
Dialog Auth App on Facebook
Logged in, need Like (page, web, etc) to open Access to Internet
Like button clicked, Lanjutkan (Continue) button appear.
Login Success. Click GO! to continue browsing
Status Login Mikrotik
on your Facebook Account there will be Post that you using Facebook Mikrotik Hotspot.
Does it need outside server with php support?Hi all,
I bought this code from the developer who promised 2 months support, but after a week of initially being more than willing to assist, he has stopped replying.
This code works, but the process is very long and difficult for the end user to follow. I have had multiple clients tell me they're not interested in using the system, as it includes far too many steps.
Having paid for the code that is not working nicely (and not being able to contact the developer for the last week), i am prepared to share it for free to anyone who can help refine and build it into something that is an easier process for the end user to work with.
If you would like the code, drop me a mail: me (at) jamescoetzee.co.za
Hello,Hi all,
I bought this code from the developer who promised 2 months support, but after a week of initially being more than willing to assist, he has stopped replying.
This code works, but the process is very long and difficult for the end user to follow. I have had multiple clients tell me they're not interested in using the system, as it includes far too many steps.
Having paid for the code that is not working nicely (and not being able to contact the developer for the last week), i am prepared to share it for free to anyone who can help refine and build it into something that is an easier process for the end user to work with.
If you would like the code, drop me a mail: me (at) jamescoetzee.co.za
Yes I agree with this. Facebook API is very complicated and since 1 May, Facebook has new rule for new application that do "Login with Facebook" feature, they have to do submission for doing this.What sort of issues are you having ?
The facebook authentication did seem to have a few steps when I looked into it, it may be something you can't avoid, if the user is using a mobile device which is already authenticated I believe it's a lot quicker and simpler.
Paul
Hi Paul,Sorry to hear that you have had this problem, I'm sure the person has gained much knowledge from these forums for free but clearly isn't willing to share their knowledge which isn't in the spirit of these or any forums really, the fact that you paid for it and they won't help you is even worse.
What sort of issues are you having ?
The facebook authentication did seem to have a few steps when I looked into it, it may be something you can't avoid, if the user is using a mobile device which is already authenticated I believe it's a lot quicker and simpler.
We are looking more at POS integration now rather than Facebook, Facebook is a dying marketing tool anyway, it's too commercial now and it's so hit and miss with when your posts and stuff actually appear and who actually sees it.
Currently we use a script for a number of customers which does a POST to our systems and creates usernames and passwords on the fly, that way our customers can integrate with their loyalty systems and really anything than can run a script and there is no effort needed on our part.
Regards
Paul
Could you send me that on dexter063 {at} gmail.com ? PMs aren't working.Hi everyone, we have managed to get our Facebook side of things to work perfectly but we cant seem to get the Mikrotik API to post back to the Router Board correctly. Is there anyone who is willing to help? PM me and Il share the code with you.
PM on this board are blocked!!!Preview for wifi login page for Cafe also make one for a bar,
Put a slot for name of cafe/bar up top left corner or something
anyone interested, pm me
Everybody can read username and password via CTRL+U and after that prepare login page.Ok guys I think I got the login to work for facebook but the page needs styling,
add code to your current login page and it should work.
It also posts to facebook aswel see attached file,
Edit the index.html with Notepad++ or dreamweaver
Look for the below lines and change the appid to yours
=================================================================================================================================
''appId : '000000000000000', // <<< ENTER YOUR APPID HERE REPLACE THE 000000000000000000000''
''js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=00000000000000000&version=v2.0"; // <<< ENTER YOUR APPID HERE REPLACE THE 00000000000000000''
==================================================================================================================================
This line below is the redirection line change to suit your hotspot config, be sure that you created the user2 profile with multible logins on same profile
window.top.location = 'http://192.168.88.1/login?username=user2&password=user2'//redirect-url.com'; REDIRECTS TO ROUTER USING THE ''USER2'' as username AND ''USER2'' as password
==================================================================
FB.api('/me/feed', 'post', {message: 'hey!'}); //CHANGE MESSAGE HERE!
==================================================================
Upload it to webserver and add your host to walled garden along with facebook ips
Everybody can read username and password via CTRL+U and after that prepare login page.Ok guys I think I got the login to work for facebook but the page needs styling,
add code to your current login page and it should work.
It also posts to facebook aswel see attached file,
Edit the index.html with Notepad++ or dreamweaver
Look for the below lines and change the appid to yours
=================================================================================================================================
''appId : '000000000000000', // <<< ENTER YOUR APPID HERE REPLACE THE 000000000000000000000''
''js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=00000000000000000&version=v2.0"; // <<< ENTER YOUR APPID HERE REPLACE THE 00000000000000000''
==================================================================================================================================
This line below is the redirection line change to suit your hotspot config, be sure that you created the user2 profile with multible logins on same profile
window.top.location = 'http://192.168.88.1/login?username=user2&password=user2'//redirect-url.com'; REDIRECTS TO ROUTER USING THE ''USER2'' as username AND ''USER2'' as password
==================================================================
FB.api('/me/feed', 'post', {message: 'hey!'}); //CHANGE MESSAGE HERE!
==================================================================
Upload it to webserver and add your host to walled garden along with facebook ips
this already running this login for facebook on your page through the mikrotik? or is it just a demo pageHi,
please check my demo and tell me what u think
its responsive and translated in portuguese, english and french
please like to access the login page
http://cofeeshopdemo.wii4play.com/login-uk/
tks
Is it working ?? Can you share the whole procedure ?Hi,
please check my demo and tell me what u think
its responsive and translated in portuguese, english and french
please like to access the login page
http://cofeeshopdemo.wii4play.com/login-uk/
tks
can u share source code please!Hi,
please check my demo and tell me what u think
its responsive and translated in portuguese, english and french
please like to access the login page
http://cofeeshopdemo.wii4play.com/login-uk/
tks
Hello,Ok guys I think I got the login to work for facebook but the page needs styling,
add code to your current login page and it should work.
It also posts to facebook aswel see attached file,
Edit the index.html with Notepad++ or dreamweaver
Look for the below lines and change the appid to yours
=================================================================================================================================
''appId : '000000000000000', // <<< ENTER YOUR APPID HERE REPLACE THE 000000000000000000000''
''js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=00000000000000000&version=v2.0"; // <<< ENTER YOUR APPID HERE REPLACE THE 00000000000000000''
==================================================================================================================================
This line below is the redirection line change to suit your hotspot config, be sure that you created the user2 profile with multible logins on same profile
window.top.location = 'http://192.168.88.1/login?username=user2&password=user2'//redirect-url.com'; REDIRECTS TO ROUTER USING THE ''USER2'' as username AND ''USER2'' as password
==================================================================
FB.api('/me/feed', 'post', {message: 'hey!'}); //CHANGE MESSAGE HERE!
==================================================================
Upload it to webserver and add your host to walled garden along with facebook ips
the link does not exist anymore, could provide another link again? tks.Hello.. thanks for giving feedback about my work.Hello ,Anyway here I made some tutorial for what I've done,
here is the link:
http://blog.dyasrtrw.net/2013/04/login- ... ebook.html
It's using Bahasa (Indonesia Language), so if you want to read it in English, use Google translate
Or click here to auto translate to English,
I follow your tutorial , but no lucky. I put user.php and routeros class API in web server , login.html inside hotspot directory of MT. I can create a new user inside MT , but no authentications inside MT.
Web server with FQDN , MT with public static IP on different address. FB application with correct parameters. I think that in your tutorial forgot same step.
Can you help me ?
Can you publish here the correct login.html file and user.php ?
Thank's in advance.
p.s. I try a new way with external captive authentication .
here I give you source code from my work,
http://www.dyasrtrw.net/fb/login-facebo ... e-code.rar
I think you're right, there's one think I forgot to write on my tutorial, that was Hotspot Walled-Garden (to enable user to open facebook page without need to login).
so here somethink you need to do:
1. open IP>Hotspot>Walled Garden IP List
2. add this address and allow it,And you're done.Code: Select all# SERVER PROTOCOL DST-HOST DST-ADDRESS DST-PORT ACTION 0 hotspot1 tcp www.facebook.com 443 accept 1 hotspot1 tcp www.facebook.com 80 accept 2 hotspot1 tcp connect.facebook.net 443 accept 3 hotspot1 tcp connect.facebook.net 80 accept 4 hotspot1 tcp *.facebook.com 443 accept 5 hotspot1 tcp *.facebook.com 80 accept 6 hotspot1 tcp *.akamaihd.net 443 accept 7 hotspot1 tcp *.akamaihd.net 80 accept
the link does not exist anymore, could provide another link again? tks.[/quote]
Hello.. thanks for giving feedback about my work.
here I give you source code from my work,
http://www.dyasrtrw.net/fb/login-facebo ... e-code.rar
I think you're right, there's one think I forgot to write on my tutorial, that was Hotspot Walled-Garden (to enable user to open facebook page without need to login).
so here somethink you need to do:
1. open IP>Hotspot>Walled Garden IP List
2. add this address and allow it,And you're done.Code: Select all# SERVER PROTOCOL DST-HOST DST-ADDRESS DST-PORT ACTION 0 hotspot1 tcp www.facebook.com 443 accept 1 hotspot1 tcp www.facebook.com 80 accept 2 hotspot1 tcp connect.facebook.net 443 accept 3 hotspot1 tcp connect.facebook.net 80 accept 4 hotspot1 tcp *.facebook.com 443 accept 5 hotspot1 tcp *.facebook.com 80 accept 6 hotspot1 tcp *.akamaihd.net 443 accept 7 hotspot1 tcp *.akamaihd.net 80 accept
Hello, for as I know, since November 2014, Facebook ban all using of Liked-Gating (user need to liked some page to get access / to open access to content). You can read it in here,Has anyone managed to finally make "login with facebook like" work?
Is there a place where i can find instructions or code?
Thank you in advance.
Hello,
Here is the latest demo I made.
this is still basic code and template.
http://cclunisbank.triputramedia.id/login
some Screenshoot :
If somebody is interested, managed the facebook login with php sdk facebook and MAC address storage in php session, showing the connect button after the facebook authentication. Still got some issues, but works.
If somebody is interested, managed the facebook login with php sdk facebook and MAC address storage in php session, showing the connect button after the facebook authentication. Still got some issues, but works.
Hi, please send me this PDF, I could not download it from the link.I have an advanced social login for Mikrotik with user data collection and automatic CHECK-IN in a place.
You can see the social example at page 3 of this pdf http://troccolielectric.com/network-services.pdf
Please gave me an email or try this http://troccolielectric.com/network-services.zipHi, please send me this PDF, I could not download it from the link.
Thanks.
CRey
Please send me PDF "network-services.zip" thanks a lot.Please gave me an email or try this http://troccolielectric.com/network-services.zipHi, please send me this PDF, I could not download it from the link.
Thanks.
CRey
HiPlease gave me an email or try this http://troccolielectric.com/network-services.zipHi, please send me this PDF, I could not download it from the link.
Thanks.
CRey
Hello pas,Hello, the PDF and the ZIP are ok, try to open it with Adobe Reader.
Now it's working. Yesterday I corrected a typo on pdf and I forgot to upload the zip.Hello pas,Hello, the PDF and the ZIP are ok, try to open it with Adobe Reader.
I receive "error 404" message with the link " http://troccolielectric.com/network-services.zip ".
I want to integrate facebook connect with my Hotspot Login. Can you post another links ?
I think that the useful is relative... For second login we will try other conditions as locate place to indicate your Wi-Fi position to friends list.[emoji6]We can provide that solution but we don't reccomend it, because the second time that the client login there is already the like.Hello!
Do we have a solution using facebook like to login?
Are they free or paid options? I'm interested and wanted to have more info.
Thank's
Mikrotik should work on some thing....
Today i was checking some links and there is a few brands that already have hotspot integrate with facebook (https://www.facebook.com/help/109150235937957).
Unfortunately nobody has found something concrete to share here...
I am searching on Goo
Envoyé de mon GT-I9190 en utilisant Tapatalk
I think that the useful is relative... For second login we will try other conditions as locate place to indicate your Wi-Fi position to friends list.[emoji6]We can provide that solution but we don't reccomend it, because the second time that the client login there is already the like.Hello!
Do we have a solution using facebook like to login?
Are they free or paid options? I'm interested and wanted to have more info.
Thank's
Envoyé de mon GT-I9190 en utilisant Tapatalk
We're completing our latest suite that includes a new and responsive web interface to collect a lot of data, let the client make advertising and obviously to manage the social authentication.I'd be more than happy to present you my solution !
Great business indeed !
We're completing our latest suite that includes a new and responsive web interface to collect a lot of data, let the client make advertising and obviously to manage the social authentication.I'd be more than happy to present you my solution !
Great business indeed !
Next week I will post a preview.
Anyway here I made some tutorial for what I've done,
here is the link:
http://www.ragilakimoto.com/2013/04/log ... ebook.html
It's using Bahasa (Indonesia Language), so if you want to read it in English, use Google translate
Or click here to auto translate to English,
Anyway here I made some tutorial for what I've done,
here is the link:
http://www.ragilakimoto.com/2013/04/log ... ebook.html
It's using Bahasa (Indonesia Language), so if you want to read it in English, use Google translate
Or click here to auto translate to English,
Hi,
I followed the link you shared but the page is no longer available.
Please can you reshare?
I want to implement this on my hotspot network.
Thanks
waleberry@yahoo.com
Hi Pas,
this source code work on virtual box? because i want try to my project