Facebook Access令牌 [英] Facebook Access token

查看:113
本文介绍了Facebook Access令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣使用facebook图表API传递电子邮件并获取一个人的姓名...有些东西:

  https://graph.facebook.com/search?q=mark@facebook.com&type=user&access_token=2227470867|2.havcPA9QlMy6tLY1FXqeJA__.3600.1304301600.0-502023190|fejBKRrESzcndWh2rM0ZtyFMGeE 

哪些返回:

  {
data:[
{
name:Mark Zuckerberg,
id:4
}
]
}

我的问题是如何获得access_token?我没有为用户建立一个应用程序,以批准更有兴趣点击API来查找一个人的名字。



想知道如何获取访问令牌? p>

谢谢

解决方案

您将需要使用开发人员创建一个Facebook应用程序应用程序。然后,您可以获取应用程序身份验证令牌(请参阅 http://developers.facebook.com的App登录部分/ docs / authentication / ),那应该让你点击Graph API。


I'm interested in using the facebook graph api to pass an email and obtain a person's name... Something like:

https://graph.facebook.com/search?q=mark@facebook.com&type=user&access_token=2227470867|2.havcPA9QlMy6tLY1FXqeJA__.3600.1304301600.0-502023190|fejBKRrESzcndWh2rM0ZtyFMGeE

Which returns:

{
   "data": [
      {
         "name": "Mark Zuckerberg",
         "id": "4"
      }
   ]
}

My question is how do I get an access_token? I'm not building an app for user's to approve more interested in hitting the API to find a person's name.

Thoughts on how I can get an access token?

Thanks

解决方案

You will need to create a Facebook application using the Developer app. You can then get an App authentication token (see the App Login section of http://developers.facebook.com/docs/authentication/) and that should let you hit the Graph API.

这篇关于Facebook Access令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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