使用图谱API的Facebook见解现在可以正常工作吗? [英] Is facebook insights using graph API working right now?

查看:95
本文介绍了使用图谱API的Facebook见解现在可以正常工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在没有Facebook JS SDK的情况下使用图形API来获取页面和应用程序见解. 我尝试了以下方法:

I would like to use graph API to get page and app insights without Facebook JS SDK. I tried the following:

  • 我与用户A创建了一个应用
  • 我使用以下URL与用户B登录到该应用程序(用户B是页面和应用程序的管理员)

https://m.facebook.com/dialog/oauth?client_id= [appID]& redirect_uri = [uri]& scope = read_insights,manage_pages& response_type = token

https://m.facebook.com/dialog/oauth?client_id=[appID]&redirect_uri=[uri]&scope=read_insights,manage_pages&response_type=token

  • 使用上述网址,登录正常,我获得了访问令牌
  • 使用 https://graph.facebook.com/me/accounts 我得到了应用程序和页面列表
  • 最后,我尝试使用以下网址查询见解值 https://graph.facebook.com/[页面ID]/insights& access_token = [login_response_access_token],但我得到以下空结果:
  • Using the above url, login was ok, I got the access token
  • Using https://graph.facebook.com/me/accounts I got the list of apps and pages
  • Finally I try to query insights values with the following url https://graph.facebook.com/[page id]/insights&access_token=[login_response_access_token] but I got the following empty result:

{ 数据": [ ], 分页":{ "previous":"https://graph.facebook.com/[page_id]/insights?format=json&since=1329064393&until=1329323593", "next":"https://graph.facebook.com/[page_id]/insights?format=json&since=1329582793&until=1329841993" } }

{ "data": [ ], "paging": { "previous": "https://graph.facebook.com/[page_id]/insights?format=json&since=1329064393&until=1329323593", "next": "https://graph.facebook.com/[page_id]/insights?format=json&since=1329582793&until=1329841993" } }

我的步骤有什么问题? 我尝试使用Graph API Explorer,但无法从以下网址获取见解值:

What wrong with my steps? I tried to use Graph API Explorer and I cannot get insights values from the following url:

https://developers.facebook.com/tools/explorer

  1. 在网址上方打开
  2. 获取访问令牌(read_insights,manage_pages)
  3. https://graph.facebook.com/[page_id]/insights返回相同的空JSON

推荐答案

您的第一步和第二步是正确的,但是第三步是错误的,因为在URL https://graph.facebook.com/[page_id]/insight中像我想的每个人一样,page_id的节点上没有见解字段.您可以在Graph资源管理器的右侧看到可以使用的字段.

your first and second steps are true but the third one is wrong because in the url https://graph.facebook.com/[page_id]/insight there is no insight field on the node of your page_id like everyone I think. You can see the fields you are able to use on the right side of the Graph explorer.

可能是洞察力空洞的原因,可能是FB.api如今返回了几天的空数据.您可以通过在应用程序页面中单击显示旧见解"来进行测试.您会看到的.

May be the reason of the emptiness of insights could be FB.api returns empty datas for some days nowadays. you can test it by clicking show old insights in the page of your app. you will see.

这篇关于使用图谱API的Facebook见解现在可以正常工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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