The application is designed to send messages to a group on messanager. It throws me an error that supposedly group id is not correct even though it is correct. in parameters code will get messages from email to send direcly to group chat:
string groupid = "correctgroupid";
FacebookClient fb = new FacebookClient("correctclient");
foreach (Message message in messages)
{
dynamic parameters = new ExpandoObject();
parameters.message = message.Snippet;
fb.Post("/"+groupid+"/feed", parameters);
}
The program is supposed to be a automatic sender I will add feature to make sure it doesnt send the same emails. the error that accures:
Facebook.FacebookApiException: „(GraphMethodException - #100) Unsupported post request. Object with ID 'correctid' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api”
Exception.ToString()
.even though it is correct
if Facebook's server say the call is incorrect, it's incorrect. The error response may explain what's wrong. Perhaps you used a name instead of an ID? There's a permission error? String concatenation resulted in an incorrect URL? What isFacebookClient
? Your own class? A class from a NuGet package?Facebook
in their title but one hasn't been updated for 7 years, the other for 2. The rest are about .NET Core authentication, not calling the GraphQL API. To use the GraphQL API you need a GraphQL library, like HotChocolate