how to supply a access token while making a graph

2019-08-31 05:48发布

问题:

I'm trying to a list of a fb page's events from a website using php or javascript, and after some googling it seems that the correct way to do it is using the api call

http://graph.facebook.com/PAGE_ID/events

but when I actually make the call, it requires authentication. I assume this is where it needs the access token from a app?

how do I actually supply the access token with that call?

回答1:

You can supply the access token like this :

XYZ_API?access_token=TOKEN


标签: facebook http