i have tried this
string accessToken = "MYTOKEN";
FacebookClient fbClient = new FacebookClient(accessToken);
var args = new Dictionary<string, object>();
args["message"] = richTextBoxMessage.Text;
fbClient.Post("/PAGENAME/feed", args);
i have this error
(OAuthException – #200) (#200) The user hasn’t authorized the
application to perform this action
if i can post on the page wall by that code,so what is the permission name that i should add on the App settings.
And how can i get the names of all pages that i liked
Thank you!
with
fbClient.get("me/likes");you can get all the pages that you have liked.and the with
fbClient.Post("/PAGEID/feed", args);you can post to page wall, provided your app haspublish_streampermission from current user.