Has anyone got a silverlight app using FDT that actually works on MacOS?

Mar 20, 2010 at 2:11 PM
Edited Mar 20, 2010 at 2:27 PM

Hello,

I have a silverlight app that works fine on Windows in all browsers and on the Mac it ONLY works on Safari.
On MacOs Firefox and Chrome do not work with the FDT?
To test I created a very simple test silverlight App with a button that only gets the friend list:

facebookAPI

.Friends.GetUserObjectsAsync(usrId, AsyncDemoCompleted, dispatcher);

In the response Callback I just show a popup window. That is all!
It works in all browsers on Windows. On the Mac it works ONLY in Safari.
In Mac/Firefox and Mac/Chrome I get this exception:
System.NullReferenceException
at Facebook.Utility.StringHelper.ConvertToCommaSeprated...
at Facebook.Rest.Friends.OnGetFriendsCompleted
....

I would really appreciate it if someone can provide some feedback on this.
Thank you!

Mar 20, 2010 at 3:54 PM
Edited Mar 20, 2010 at 4:15 PM

Hello,

I have created a bare bones app and published it on facebook.
http://apps.facebook.com/dummiesec
Once logged in you will see a button. If you press that button a MessageBox will pop up telling you the number of friends you have.
On Windows it works on all browsers. On MacOs it only works in Safari. Tested on several Mac's.

I have zipped the code for the bare bones silverlight app and uploaded it here in case someone wants to take a look:
http://www.quintasanluis.com/MacOsIssue/MacOsIssue.zip

This is something so basic that I am really surprised it does not work and that no one has run into this before.

All I am basically doing:

        private void Test_Click(object sender, RoutedEventArgs e)
        {
            _facebookAPI.Friends.GetUserObjectsAsync(_facebookAPI.Session.UserId, AsyncDemoCompleted, null);
        }

        private void AsyncDemoCompleted(IList<user> result, Object state, FacebookException e)
        {
            if (e != null)
            {
                throw e;
            }
            Dispatcher.BeginInvoke(() =>
            {
                MessageBox.Show("AsyncDemoCompleted. Users: " + result.Count.ToString());
            }
           );
        }