Question

I would like to take the facebook feed from a facebook page and add display it (the statuses and images) on my windows store app. I have installed the Facebook SDK for .NET and I am trying to find some tutorials but all I can find is how to add a login screen. Any ideas what I can do?

Was it helpful?

Solution

If you are new to C# SDK, you can start from here: Facebook SDK for .NET

Concept

You can get the feeds from a page using:

/PAGE_ID/feed

You can get the photos from a page using:

/PAGE_ID/photos

(only if the feeds/photos are public)

Implementation

Example-

FacebookClient fb = new FacebookClient(App.AccessToken);

dynamic parameters = new ExpandoObject();
parameters.access_token = App.AccessToken;

dynamic result = await fb.GetTaskAsync("PAGE_ID/feed", parameters);

Graph API Explorer Examples-

You can get the parameters you required.

Posts Example

Photos example

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top