Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

facebook get user pages

$
0
0

Hello friends,

maybe this is not the place to ask but still I'll give it a try.

I need to get the facebook pages that a user can post to (especially where the user is an admin).

What I have now is below and it works.

Uri ex_a = new System.Uri("https://graph.facebook.com/" + user_id + "/likes?access_token=" + token); WebClient WC_a = new WebClient(); WC_a.DownloadStringCompleted += new System.Net.DownloadStringCompletedEventHandler(wc_accounts); WC_a.DownloadStringAsync(ex_a);

private void wc_accounts(object ob, DownloadStringCompletedEventArgs e)
{

MessageBox.Show(e.Result);

}

This code works for the current user's id and for a friend's id but, the result does not specify if the user can post to those pages or not, and not even if the user is an admin of one page.

Anyone has a better solution?

Thank you.


Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>