Facebook使用Graph API使用c#检索数据 [英] Facebook Retrive Data using Graph API using c#
本文介绍了Facebook使用Graph API使用c#检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以帮助我吗?
解决方案
转到developer.facebook.com - >工具&支持 - >选择Graph API Explorer
这里U获取FQL查询,访问令牌
然后在C# .....
var client = new FacebookClient();
client.AccessToken =您的访问令牌;
//显示用户的个人资料图片
dynamic me = client.Get(me?fields = picture);
pictureBoxProfile.Load(me.picture.data.url);
//显示用户的生日
me = client.Get(me /?fields = birthday);
labelBirthday.Text = Convert.ToString(me.birthday);
i have created desktop Facebook application using c# .net. i want to retrieve users message,post and chat history. which is convenient way to retrieve users all information.i have started with Facebook Graph API but i am not getting any example.
can any one help me ?
解决方案
Go to developer.facebook.com -> Tools & Support -> Select Graph API Explorer
Here U get FQL Query, Access Token
Then write code in C#.....
var client = new FacebookClient();
client.AccessToken = Your Access Token;
//show user's profile picture
dynamic me = client.Get("me?fields=picture");
pictureBoxProfile.Load(me.picture.data.url);
//show user's birthday
me = client.Get("me/?fields=birthday");
labelBirthday.Text = Convert.ToString(me.birthday);
这篇关于Facebook使用Graph API使用c#检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文