通过facebook-api获取一系列事件 [英] Get an array of events throug the facebook-api
本文介绍了通过facebook-api获取一系列事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这一个成功...
$ userlocation = $ facebook-> api('/ me','get',array(fields=>name,location) );
这一个返回一个空的aray ...
$ events = $ facebook-> api('/ me / events','get',array(fields=>id,owner,name,location ));
thx ..
解决方案
很可能你没有获得 user_events
权限!
Still don't got it, how to use the facebook api, for things like that.
This one succeeds...
$userlocation = $facebook->api('/me', 'get', array("fields"=>"name,location"));
This one returns an empty aray...
$events= $facebook->api('/me/events', 'get', array("fields"=>"id, owner, name,location"));
thx..
解决方案
Most likely you didn't acquire the user_events
permission!
这篇关于通过facebook-api获取一系列事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文