我无法私下回复在 Facebook 页面帖子上评论的任何人,但我可以回复我通过它创建应用程序的帐户,如何解决此问题?
我正在使用 C# 来执行此操作,这是我的代码:
string apiUrl = $"https://graph.facebook.com/v19.0/{commentid}/comments?access_token={pageAccessToken}";
string requestBody = @"
{
""message"": ""private reply message here.""
}";
try
{
var request = (HttpWebRequest)WebRequest.Create(apiUrl);
request.Method = "POST";
request.ContentType = "application/json";
using (var streamWriter = new StreamWriter(request.GetRequestStream()))
{
streamWriter.Write(requestBody);
}
var response = (HttpWebResponse)request.GetResponse();
using (var streamReader = new StreamReader(response.GetResponseStream()))
{
var result = streamReader.ReadToEnd();
Console.WriteLine("Private reply sent successfully!");
}
}
catch (WebException e)
{
Console.WriteLine("Error: " + e.Message);
}
我仔细检查了访问令牌的权限,并授予了完全权限,我还确保我使用的是页面令牌而不是用户令牌。
cek 权限https://developers.facebook.com/tools/debug/accesstoken/
我使用facebooklite +应用程序克隆器来获得无限的令牌 切克这个=>https://youtu.be/zcQ_YW8IktU