facebook – 字段别名不使用https图API请求

Facebook GraphAPI的
Field Aliases不支持通过https url请求.

以下是一个不受支持的例子:

https://graph.facebook.com/v2.6/theunrealpage?fields=posts.limit(5){picture,full_picture,link,source,reactions.type(LIKE).limit(0).summary(total_count).如(like_reactions)}&安培; ACCESS_TOKEN = 531682143674670 | c71A8V6qW0jarwsFqUWjMMJYQqo

发出请求时,会出现以下错误:

错误:{
消息:“(#100)未知字段:like_reactions,love_reactions.”,
输入:“OAuthException”,
代码:100,
fbtrace_id:“Dl3pAPrhdHt”
}

有没有办法实现这个目标?

最佳答案 Facebook已声明所有边缘都不支持别名功能.见:
https://developers.facebook.com/bugs/882975555164278/

此处提出了一种解决方法:https://stackoverflow.com/a/37621973/1611735

点赞