2016-04-19 4 views
-1

Ich habe eine Liste der Facebook-Beiträge, die ich Inhalt bekommen muss. Zum Beispiel :Facebook API erhalten Post-Inhalt für jeden Beitrag C#

https://www.facebook.com/92979593115/posts/10153657643923116 
https://www.facebook.com/92979593115/posts/10153659926668116 
https://www.facebook.com/92979593115/posts/10153701531073116 

usw.

Ich brauche nur den Inhalt (Körper) jeder Beitrag. Das ist es . Ich habe meine App auf fb erstellt und habe id und secret aber jedes Mal bekomme ich eine Bad Request.

string oauthUrl = string.Format("https://graph.facebook.com/oauth/access_token?type=client_cred&client_id={0}&client_secret={1}",  "my_client_id", "my_secret"); 

string accessToken = client.DownloadString(oauthUrl).Split('=')[1]; 

string url = string.Format("https://graph.facebook.com/10153657643923116/posts?access_token={0} ", accessToken); 

Rohan.

Antwort

Verwandte Themen