views:

366

answers:

0

I've been following quite a bit of tutorials and digging around source code and I finally got the barebones of my application setup and ready, and it worked!

I am doing this all locally so I went ahead and edited my /etc/hosts file to look something like this:

127.0.0.1 dewski.com

I can go to dewski.com and have it show my local site.

Then started having issues having my Connect URL being called after login, it worked, but now it doesn't! It just redirects back to the root of the site, per the onlogin being called. I have that there because it used to just have the callback being called in the Facebook window that popped up, then it started being called in main window (where it was being connected from). My callback URL is /fb/connect so I have my Cross Domain Receiver in there.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
<html lang='en' xml:lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www.w3.org/1999/xhtml'&gt;
  ...
    <fb:login-button v="2" size="small" onlogin="window.location.reload(true);"></fb:login-button>
  ...
    <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US.js" type="text/javascript"></script>
    <script type='text/javascript'>
      FB.Bootstrap.requireFeatures(["XFBML"], function() {
        FB.FBDebug.logLevel = 4;
        FB.FBDebug.isEnabled = true;
        FB.Facebook.init("4e952ae8af53521915be36d11216a310", "/fb/connect/xd_receiver.htm");
      });
    </script>
  </body>
</html>

Here are my Facebook settings (I have all the other fields filled out per the tutorial, but I don't want to load this up with images):

Facebook Connect Settings

What can I do to properly test my Facebook Connect process? I go back and delete the application from my profile each time, but it never asks me to Connect again.