So maybe the documentation is out of date, or I'm just here. But I have made many iframe FB (connect) applications, but I am starting my first FB Connect site. Running it from the local host, and the connection URL is http:// my_external_IP_address. When I click on the FB login button on my site, she appears, says she is waiting for facebook, and she returns my site in this field, with the URL at the top using http:// mysite/?session={session key, user_id, etc.}. User_id reports my FB ID. And so he thinks I'm logged in. If I close the popup, I will not log in. I am not sure why the popup does not perform the usual fb connection dialog. I am following the steps below.
(I added spaces to http: // so as not to be detected as "spam")
html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"- right after
<body> <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"> - In the end, before the tag closing tag:
script type="text/javascript">
FB.init("fbkey", "http://127.0.0.1/xd_receiver.htm");
I tried to use xd_receiver.htm, /xd_receiver.htm(and other combos), and this leads to a blank page. using http://127.0.0.1 at least does something.
In my configuration file, which is called before all of them, it checks the PHP session key to make sure they are logged in, if this does not exist, it looks for a cookie, and if it does not exist, it does this:
require_once('includes/facebook.php');
$facebook = new Facebook($fbkey, $fbsec);
$user_id = $facebook->get_loggedin_user();
if($user_id > 0){
$user = $ac->getUserFromFB($user_id);
$_SESSION['user_id'] = $user['user_id'];
}
User user_id is always empty when I repeat it on the screen for verification. A session event never occurs. So I don’t know what he is doing in the popup, but I think Facebook thinks he launched me. Not sure. Pretty dumb on that. Any help would be greatly appreciated. Thank!