Facebook 访问令牌
我有兴趣使用 facebook graph api 传递电子邮件并获取人名...类似:
https://graph.facebook.com/[email protected]&type=user&access_token=2227470867|2.havcPA9QlMy6tLY1FXqeJA__.3600.1304301600.0-502023190|fejBKRrESzcndWh2rM0ZtyFMGeE
返回:
{
"data": [
{
"name": "Mark Zuckerberg",
"id": "4"
}
]
}
我的问题是如何获取 access_token?我构建的应用程序并不是为了让用户批准对使用 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/[email protected]&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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您将需要使用 Developer 应用程序创建 Facebook 应用程序。然后,您可以获得应用程序身份验证令牌(请参阅 http://developers.facebook.com 的应用程序登录部分/docs/authentication/),这应该可以让您使用 Graph API。
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 graph api 时,您应该了解一些事情
首先您需要创建 Facebook 应用程序,它将提供APP ID 和 APP Secret< /strong> 但不是访问令牌
您可以关注的参考:- http:// techpost360.blogspot.com/2016/10/build-your-own-facebook-app.html
其次,您需要创建您在第一点中创建的应用程序的访问令牌。
您可以参考:-http://techpost360.blogspot.com /2016/10/create-facebook-access-token.html
当然,要执行上述两项活动,您需要登录“http://developers.facebook.com"
现在如何创建访问令牌,请按照以下步骤操作:-
希望这会帮助您使用访问令牌。有关更多详细信息,请点击上面发布的参考文章链接。
谢谢
While working with facebook graph api there are couple of things you should know
First you need to create Facebook app which will give APP ID and APP Secret but not Access Token
Reference you can follow : - http://techpost360.blogspot.com/2016/10/build-your-own-facebook-app.html
Secondly you need to create the Access Token for the app which you have created in first point.
Reference you can follow : -http://techpost360.blogspot.com/2016/10/create-facebook-access-token.html
And off course for performing above two activity you need to login to "http://developers.facebook.com"
Now how to create Access Token please find the steps below :-
Hope this will help you to play with the Access Token. For more details you follow reference article links posted above.
Thanks