自动化Facebook oauth生成访问令牌 [英] Automate Facebook oauth to generate access tokens

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

问题描述

Facebook oauth进程提示用户使用他的用户名和密码登录并提示有关权限。

所以我的问题是是否有办法进行程序化oauth登录。我们以编程方式传递用户的用户名和密码,并获得用户的许可(访问令牌),无需用户手动干预。

Facebook oauth process prompts user to login using his username and password and prompt about permissions.
So my question is if there is way to do programmatic oauth login. Where we pass user's username and password programmatically and acquired user's permission (access token) without user’s manual intervention.

推荐答案

嗯,你有指定的语言,所以你的问题可以只能从广义上回答 - 是的,它可能的



请参阅此处了解可能有用的oauth实现 http://oauth.net/code/ [ ^ ]



一切都很好,但还有一个更大的问题 - 你如何将凭证[用户名/密码等]存储到一个oauth客户? (我怀疑大多数人会在这一点上失败,他们会想出一些不可思议的计划)



'g'
well, you havnt specified a language, so your question can only be answered in broad terms - 'Yes, its possible'

see here for oauth implementations that may help http://oauth.net/code/[^]

All that is very well, but a bigger question remains - how are you going to store the credentials [user name/password etc] to pass to an oauth client ? (and I suspect most people will fail on this bit, they'll dream up some harebrained scheme)

'g'


您想自动获取令牌的最后一步吗?

如果是,您必须通过分析网页源代码来模拟浏览器请求。
Do you want to automate final step in getting tokens?
If yes, you have to simulate browser request by analyzing web page source code.


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

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