Looking at the code inside of our trial code...
Hopefully you gave the code from Friday a try, Popfly should be used for that type of code, since there is that banner that advises people to not input their password, etc. Now that you have run your tests, make sure to change your site or remove it.
Using Visual Studio 2008 Web Developer Express (let's call it Web Dev) I am able to connect to Popfly and use the Web Dev tool to connect with Popfly. I am also able to share code directly with you. However, for now, lets dig into the code.
What do we have in our example? A process to do the sign-in for the receiver and sender, both have to be in the other's contact list. Also, we have now achieved the "nudge", we haven't figured out how to use it yet, but we a code example. To work through a tutorial, which I can't get to work, let me know if you get it to work:
http://msdn.microsoft.com/en-us/library/cc298455.aspx, this example is pretty simple, and I recommend that you look at it.
This is the code that we use to create the sign-in control
signin = new Microsoft.Live.Messenger.UI.SignInControl('signinframe', privUrl, chanUrl, 'en-US');signin.add_authenticationCompleted(authenticationCompleted);
Generates the control shown below:
To authenticate the user the following code is used:
_user = new Microsoft.Live.Messenger.User(e.get_identity());
Then to complete the sign-in:
if (e.get_resultCode() === Microsoft.Live.Messenger.SignInResultCode.success)
document.getElementById('userInfo').innerHTML = '<p>' + _user.get_address().get_address() + ' is now signed in.</p>';
Stay tuned for the next blog entry, we will take a look at the "nudge" and how we can use the Windows Live Messenger Library to call managed functions. Since XNA is part of the managed code, we are getting closer to driving our Xbox controller with a nudge from Live Messenger.