Facebook Search API返回空的json [英] Facebook Search API returning empty json

查看:102
本文介绍了Facebook Search API返回空的json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook搜索API(https://graph.facebook.com/search)似乎返回空字符串,即使输入正确的数据也是如此.

The Facebook search API (https://graph.facebook.com/search) seems to return an empty string even when fed with correct data.

https://graph.facebook.com/search?q=Joe&type=user&access_token=EAAH8mO348PABAKZCmuqftCrlBbqxNvpxzJiCywVgeAxLgKfMs432GpZC8Xd2yvrXNm7OoWbZAsjOs8LOfJ8BGMMcvJQZCVG1LIHjdVZAr1Gks1ZB5nn7guZBAauPZCdIi16A6cK3vX0i1pLhY3bVZCNSkOG7TkEqaMZBnyIPf0UMo5uzsJsIWXo1J251rDlyMtEpMYTWUcaHOOK6aIJu1vzPZAr这样的调用(使用我的访问令牌)不会返回任何内容.

A call like https://graph.facebook.com/search?q=Joe&type=user&access_token=EAAH8mO348PABAKZCmuqftCrlBbqxNvpxzJiCywVgeAxLgKfMs432GpZC8Xd2yvrXNm7OoWbZAsjOs8LOfJ8BGMMcvJQZCVG1LIHjdVZAr1Gks1ZB5nn7guZBAauPZCdIi16A6cK3vX0i1pLhY3bVZCNSkOG7TkEqaMZBnyIPf0UMo5uzsJsIWXo1J251rDlyMtEpMYTWUcaHOOK6aIJu1vzPZAr (using my access token) doesn't return anything.

令牌有效.我直接从Facebook开发者控制台中粘贴了它.

The token is valid. I have pasted it directly from the facebook developers console.

你能帮帮我吗? 预先感谢!

Can you help me out? Thanks in advance!

推荐答案

不可能了

https://developers.facebook .com/docs/graph-api/changelog/breaking-changes#search-4-4

您不能再将/search端点与以下对象一起使用 类型:

You can no longer use the /search endpoint with the following object types:

  • 事件
  • 页面
  • 用户
  • event
  • group
  • page
  • user

这篇关于Facebook Search API返回空的json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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