Android Facebook Graph API音乐决定艺术家和专辑
如何在Facebooks Graph API中区分艺术家和相册? 搜索时Android Facebook Graph API音乐决定艺术家和专辑,android,facebook,facebook-graph-api,Android,Facebook,Facebook Graph Api,如何在Facebooks Graph API中区分艺术家和相册? 搜索时 new GraphRequest( AccessToken.getCurrentAccessToken(), "/me/music", null, HttpMethod.GET, new GraphRequest.Callback() { @Override public void onCompl
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/me/music",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
@Override
public void onCompleted(GraphResponse graphResponse) {
response = graphResponse;
}
}
)
专辑和艺术家都会被退回。(奇怪的是,歌曲并非如此)
我如何决定这是一张专辑还是一位艺术家
图形响应
如下所示
{
"data": [
{
"name": "The Marshall Mathers LP",
"id": "112321302117017",
"created_time": "2015-09-14T08:15:22+0000"
},
{
"name": "Sabaton",
"id": "7545529867",
"created_time": "2015-08-14T11:43:03+0000"
}
],
"paging": {
"cursors": {
"before": "MTEyMzIxMzAyMTE3MDE3",
"after": "NzIzNDU0NjcwNgZDZD"
}
}
我如何确定这是一张专辑还是一位艺术家?文档位于
不过,据我所知,艺术家页面和相册页面在页面级别上没有区别。如果我请求所有页面的每个字段,那么我如何确定该页面是相册页面还是艺术家页面?你不能。。。正如我所写