在进行图形API调用时如何提供访问令牌 [英] how to supply a access token while making a graph api call

查看:94
本文介绍了在进行图形API调用时如何提供访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用php或javascript从一个网站的fb页面的事件的列表,并且在一些谷歌搜索之后似乎正确的方法是使用api调用

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

,但是当我实际拨打电话时,它需要认证。我假设这是需要从应用程序访问令牌的地方?



如何实际提供该通话的访问令牌?

解决方案

您可以提供访问令牌:

  XYZ_API ?access_token = TOKEN 


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?

解决方案

You can supply the access token like this :

XYZ_API?access_token=TOKEN

这篇关于在进行图形API调用时如何提供访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆