开发者

Accessing a pages events using facebook graph api

Just started working with the Facebook graph api and have hit abit of a wall. I want to access facebook pages by using the api /events/ however i have discovered that this requires an access token, IE a login. (at least thats how i think works)

Basically my site lists bands and events, so id like the user (band) to specify a connection to their facebook page if they have one (pageId) so i can dynamically pull the events they have posted to their facebook page.

Is this even at all possible? at the moment i am able to pull in the pages feed like /feed/ but running /events/ throws an excpetion saying it requires an access token.

Im using PHP with a fresh install of codeigniter 2.0 its also worth mentioning im using elliot haughins facebook library facebook library though this isnt开发者_运维知识库 essential to my project


You can register an app with facebook and it can have it's own token that you can use to access the event for pages. You can find out how to get an app token here. http://developers.facebook.com/docs/authentication/

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜