[英]oAuth 2.0, access_token, Facebook, Twitter
I spent a lot of time looking for any clarifications about using oAuth with FB and Twitter. 我花了很多时间寻找有关在FB和Twitter上使用oAuth的任何说明。 I have to do application which will be using access_token.
我必须做将要使用access_token的应用程序。 This token will be used also on diffrent devices to access user account via API.
此令牌还将在其他设备上使用,以通过API访问用户帐户。 When I'm looking for "how to use access_token" I only finding "how to get token".
当我寻找“如何使用access_token”时,我只找到“如何获取令牌”。 If I something miss reading documentation please let me know, especially where is example - how to use this token on other devices to access API to send eg.
如果我错过了阅读文档的权限,请告诉我,尤其是示例位置-如何在其他设备上使用此令牌访问API以发送例如。 post.
发布。 I have found Twiiter4j and Facebook4j these libs helped me... I've got this access_token and now what next, how connect to API... I know that it's no possible to get access to Twiiter API - ok, but what about FB and "client side"
我发现Twiiter4j和Facebook4j这些库对我有帮助...我有这个access_token,接下来是什么,如何连接到API ...我知道无法访问Twiiter API-好的,但是关于FB呢?和“客户端”
please help. 请帮忙。
Oauth can be complicated so let me try to explain it simply. Oauth可能很复杂,所以让我尝试简单地解释一下。
The main thing to stress here is that in order to do the oauth handshake, you need a secret key that you never output to the browser. 这里要强调的主要事情是,为了进行oauth握手,您需要一个永远不会输出到浏览器的密钥。 That means you'll need to implement part of this on your backend.
这意味着您需要在后端上实现其中的一部分。 You've tagged this with
java
so maybe that means you're using java as your backend, maybe with Google app engine or something. 您已经用
java
标记了它,所以也许这意味着您正在使用Java作为后端,也许是通过Google应用程序引擎之类的。 You'll need to find the oauth library for that, and work it out from there. 您需要为此找到oauth库,然后从那里开始工作。
You can't create the oauth handshake only with frontend code. 您不能仅使用前端代码创建oauth握手。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.