How to send a Facebook App request/ invite? (MVC4)
At the moment I am creating a MVC4 web application and use the Facebook API.
I implemented this method to send a app request, but I get this error
"(GraphMethodException - #100) Unsupported post request.". How to solve
this problem?
public void SendAppRequest(string facebookUserId, string message)
{
FacebookClient fbClient = new FacebookClient();
fbClient.AccessToken = getAccessToken();
dynamic nparams = new ExpandoObject();
nparams.message = message;
nparams.title = "To receive notify messages of the Project Web
application, accept this request.";
var response = fbClient.Post(facebookUserId + "/apprequests",
nparams);
}