gpt4 book ai didi

facebook - (OAuthException) (#15) 您调用的方法必须使用应用程序 secret 签名 session 来调用

转载 作者:行者123 更新时间:2023-12-02 22:13:52 24 4
gpt4 key购买 nike

我正在尝试将测试用户添加到我的 Facebook 应用程序,以便我可以更好地测试请求对话框并检查是否可以检索跟踪信息。但我一直在这个问题的标题中收到错误。这是我的代码:

    [CanvasAuthorize]
public ActionResult Add()
{
var fb = new FacebookWebClient(FacebookWebContext.Current);
dynamic result = fb.Post(string.Format("{0}/accounts/test-users", FacebookWebContext.Current.Settings.AppId),
new { installed = false});
return Content(result.ToString());
}

奇怪的是,在调试时,我检查了当前上下文,看起来一切都很好。所有属性都在那里(包括应用程序 key ),没有任何属性为空。为什么会发生这种情况?

更新: C# equivalent of file_get_contents (PHP)

最佳答案

我猜这个错误和旧的命名有点误导,你需要的是 application access tokenTest Users documentation 中提到了这一点:

You can create a test user associated with a particular app using the Graph API with your app access token.

对于 PHP 用户,我编写了一个关于如何获取此访问 token 的教程 here .

关于facebook - (OAuthException) (#15) 您调用的方法必须使用应用程序 secret 签名 session 来调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5990051/

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