Frage

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?

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top