views:

80

answers:

2
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<div id="facebook">
    <fb:login-button onlogin="facebook_onlogin();"></fb:login-button>
</div>

<script type="text/javascript">  FB.init("5dbe0d9768c26d9b553f394b3e4ac644", "xd_receiver.htm"); </script>

when i click it ,traceback:

alt text


i changed this :

<script type="text/javascript"> 
    FB_RequireFeatures(["XFBML"], function(){
    FB.init("5dbe0d9768c26d9b553f394b3e4ac659", "xd_receiver.htm");
});

 </script>

and run on webserver,it be:

alt text

and when i click 'content'

it be:

alt text

why ?

thanks


my xd_receiver.htm is :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; 
<html xmlns="http://www.w3.org/1999/xhtml" > 
    <body> 
        <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"></script> 
    </body> 
</html>

it is ok now ,and how to defined the return page when ruturned from login.facebook.com,i used django.

alt text

A: 
FB_RequireFeatures(["XFBML"], function(){
    FB.init("public_key_here", "/xd_receiver.htm");
});

ps: and check if Connect URL in application settings points to the same xd_receiver

pps: do you run this html under web-server or just open html file from drive?

zerkms
hi zerkms, it also error.
zjm1126
you don't answer to my questionbtw: this code works perfectly for me
zerkms
hi zerkms,i update my question,and thanks for your answer.
zjm1126
did you check Connect Url at application settings? have you tried to specify absolute path to xd_receiver? and the last screen: it's something with your internet, not related to FB Connect at all.
zerkms
hi zerkms,do you know which place defined the back url .
zjm1126
there is no any back url. it's only one url you should take care about: it's Connect URL and i notice you already third time about it. it should point to proper xd_receive file url both in FB.init and Connect URL option at application settings.
zerkms
A: 

Your access seems to be blocked by some sort of firewall. Try to ping the server and see if you can get any response.

ping login.facebook.com

EDIT: FYI, "www.facebook.com" and "login.facebook.com" are mapped to 2 different IP addresses. i.e. being able to connect to "www.facebook.com" doesn't necessarily mean you can connect to "login.facebook.com".

shinkou
actually both facebook.com and login.facebook.com are not 2 ip's, but huge data centers with much more than 2 ip's ;-)
zerkms