I got stuck @login
the FBlogin button is in IFRAME and apparently has "javascript:window.open" and does not work under WRT environment should have "javascript:widget.openURL"
the FBlogin button works in mobile browser, but not in WRT
(
keep looking for a solution..
the only solution that I have is for example to "connect to facebook" only my top from games... although the top will open in a browser 
Code:
<?php
define('YOUR_APP_ID', '*********');
define('YOUR_APP_SECRET', '*******************');
function get_facebook_cookie($app_id, $app_secret) {
$args = array();
parse_str(trim($_COOKIE['fbs_' . $app_id], '\\"'), $args);
ksort($args);
$payload = '';
foreach ($args as $key => $value) {
if ($key != 'sig') {
$payload .= $key . '=' . $value;
}
}
if (md5($payload . $app_secret) != $args['sig']) {
return null;
}
return $args;
}
$cookie = get_facebook_cookie(YOUR_APP_ID, YOUR_APP_SECRET);
$user = json_decode(file_get_contents(
'https://graph.facebook.com/me?access_token=' .
$cookie['access_token']));
$friends=file_get_contents(
'https://graph.facebook.com/me/friends?access_token=' .
$cookie['access_token'])
?>
<html>
<body>
<?php if ($cookie) { ?>
Welcome <?= $user->name ?>(<?= $user->id ?>)<?= $user->id ?>
<?= $friends ?>
<?php } else { ?>
<fb:login-button></fb:login-button>
<?php } ?>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({appId: '<?= YOUR_APP_ID ?>', status: true,
cookie: true, xfbml: true});
FB.Event.subscribe('auth.login', function(response) {
window.location.reload();
});
</script>
</body>
</html>