gpt4 book ai didi

c# - Facebook 错误 : Some of the aliases you requested do not exist: access_token

转载 作者:行者123 更新时间:2023-12-02 22:43:35 25 4
gpt4 key购买 nike

我正在使用 C# Facebook 库。有了这个,我想在我自己的墙上张贴一些东西,但我遇到了一个错误(如标题中所述):

(OAuthException) (#803) Some of the aliases you requested do not exist: access_token=438781769472xxxxxxxxxxxxxxxxxx

这就是我在代码中所做的:

FacebookClient facebookClient = new FacebookClient(myAccessToken);
var args = new Dictionary<string, object>();
args["message"] = "Test message";
args["caption"] = "Caption";
args["description"] = "Description";
args["name"] = "Name";
args["picture"] = "";
args["link"] = "";

// Not sure which one to use, but both give same error
facebookClient.Post(appAccessToken+"/feed", args);
//facebookClient.Post(appAccessToken, args);

任何人都知道问题可能是什么以及我该如何解决这个问题?

最佳答案

 facebookClient.Post(appAccessToken+"/feed", args); 

应该改为

  facebookClient.Post("<page_id>/feed", args);

您需要添加您要发帖的页面id

关于c# - Facebook 错误 : Some of the aliases you requested do not exist: access_token,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10397917/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com