开发者

How to get the name in facebook and silverlight?

I've been trying to get the name and only the name.

Like this shows everything:

fb.GetAsync("me", (val) =>
            {
                if (val.Error == null)
                {
                    var result = (IDictionary<string, object>)val.Result;
                    Dispatcher.BeginInvoke(() => InfoBox.ItemsSource = result);
                }
                else
                {
                    // TODO: Need 开发者_如何学编程to let the user know there was an error
                    //failedLogin();
                }
            });

So how do I just get the name?

regards Even


I'm JeongSeop Kim. Korean.

You can access infomation by using Dispatcher.BeginInvoke() func.

for example.

Dispatcher.BeginInvoke(() => firstNameTxtBlock.Text = result["first_name"].ToString());

Maybe you can see:)

Good Lock!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜