开发者

How to get the name in facebook and silverlight?

开发者 https://www.devze.com 2023-02-15 08:01 出处:网络
I\'ve been trying to get the name and only the name. Like this shows everything: fb.GetAsync(\"me\", (val) =>

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

精彩评论

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