简体   繁体   English

Facebook从节点C#Facebook SDK获取状态消息

[英]Facebook Get Status message from node C# Facebook SDK

I am trying to retrieve a message from a node (my own status message): I am using C# Facebook SDK. 我正在尝试从节点检索消息(我自己的状态消息):我正在使用C#Facebook SDK。 My GET request is the following: 我的GET请求如下:

status = fb.Get("/v2.2/100006927xxxxxx_1568238173xxxxxx?fields=message")

I tested this in Graph Explorer on the development site and it works. 我在开发站点的Graph Explorer中对此进行了测试,并且可以正常工作。

but in my application I get an "Unsuppported Get Request #100" error. 但是在我的应用程序中,出现“未支持的获取请求#100”错误。

Is there something new because I think that worked before? 是否有新的东西因为我认为以前有用?

Ensure that the access token you are using on Graph API Explorer matches the one you are using in your application. 确保在Graph API Explorer上使用的访问令牌与您在应用程序中使用的访问令牌匹配。

下拉式菜单

In Graph API Explorer check three calls 在Graph API Explorer中检查三个调用

  • /app to see which app you are using /app查看您使用的是哪个应用
  • /me/permissions to see what permission is granted in the application /me/permissions以查看在应用程序中授予了什么权限
  • /me to see which app scoped user ID has been assigned /me查看已分配的应用范围用户ID

Depending on the access token and the application, the privacy level of that status might not be able available to you. 根据访问令牌和应用程序的不同,您可能无法使用该状态的隐私级别。

eg 100006927xxxxxx looks like an app scoped user ID 例如100006927xxxxxx看起来像是应用程序范围内的用户ID

This will mean that only one particular application will be able to access this resource. 这意味着只有一个特定的应用程序将能够访问该资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM