2

i could realy use some help here, how can i make a simple facebook connection and get the online friends with the new facebook sdk for C#? 10Q.

yoni
  • 21
  • 2

1 Answers1

0

I would do an FQL multiquery

query0, select all friends query1, select all online friends , from query0.

var fb = new FacebookWebClient();
dynamic result = fb.Query(query0, query1);

See example in my other answer here:

Starting multiquery in client throws parser error

Check also this other question: How to get list of online friends using FQL with facebook API?

And these:

http://developers.facebook.com/docs/reference/fql/user/

http://developers.facebook.com/docs/reference/fql/friend/

Remember to grant the proper permissions to access that information, which I think are "friends_about_me" in this case.

Check also here: http://developers.facebook.com/docs/authentication/permissions/

Hope this helps

Community
  • 1
  • 1
firepol
  • 1,731
  • 22
  • 39