Facebook(#100)尝试访问节点类型上的非现有字段(read_insights)(页) [英] Facebook (#100) Tried accessing nonexisting field (read_insights) on node type (Page)

查看:522
本文介绍了Facebook(#100)尝试访问节点类型上的非现有字段(read_insights)(页)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试为客户端设置分析仪表板。
我需要获取页面洞察总体观看次数,覆盖面和参与度。



在图形API资源管理器中,我尝试在向页面ID提交后请求read_insights我的这个项目的应用程序。我可以请求许多字段,但是当我尝试read_insights(这是我需要的分析数据所需的)时,它会给我这个错误。

 (#100)尝试在节点类型上访问非现有字段(read_insights)(页)

I也可以得到这个错误信息

 type:OAuthException,
code:100,
fbtrace_id:D / HzJo9q / T9

我登录的用户这是应用程序的管理员和页面。



我还启用了access_token字段。



我得到这个页面上的read_insights?

解决方案

您最初收到的错误消息只是意味着您将字段与权限混淆。 p>




/ page-id / insights / page_views_total 基本上都是你需要的,如果你想要获得一个指标。



如果你需要更多的指标,你可以lis以逗号分隔,如下所示:



/ page-id / insights / page_views_unique,page_views_total



如果您需要从页面获取更多数据,请使用字段扩展语法(请参阅基本API使用一章),您可以将其与其他字段/边结合使用。 ..但是对于基本的请求本身,这样做。


Trying to setup an analytics dashboard for a client. I need to get the page insights total views, reach, and engagement.

In the Graph API Explorer I tried to request read_insights after submitting the page id from my app for this project. I am able to request many fields but when I try read_insights (which is required for the analytics data I need) it gives me this error.

(#100) Tried accessing nonexisting field (read_insights) on node type (Page)

I also get this error information along with it

"type": "OAuthException",
"code": 100,
"fbtrace_id": "D/HzJo9q/T9"

The user I am logged in with is the administrator of the app and the page.

I also have the access_token field enabled.

How do I get read_insights on this page?

解决方案

The error message you initially got simply means you are confusing fields with permissions.


/page-id/insights/page_views_total is basically all you need, if you want to get a single metric.

If you need more metrics, you can list them comma-separated, like so:

/page-id/insights/page_views_unique,page_views_total

You can combine that with other fields/edges, if you need to get more data from the page in one go, using the field expansion syntax (see chapter on basic API usage) ... but for the basic request in itself, that will do.

这篇关于Facebook(#100)尝试访问节点类型上的非现有字段(read_insights)(页)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆