如何使用Python扩展我的facebook access

编程入门 行业动态 更新时间:2024-10-23 06:30:07
如何使用Python扩展我的facebook access_token?(How to extend my facebook access_token with Python?)

我已经有了access_token,但它是一个short_lived_token。 对于我的应用程序,我需要一个long_lived_token,我知道如何在java中获取它,但我正在使用Python。

有人知道如何在python中获得long_lived access_token吗? 或者如何在python中将我的short_lived更新为long_lived?

I already have an access_token but it's a short_lived_token. For my application I need a long_lived_token, and I know how to get it in java, but I'm using Python.

Does anybody know how to get a long_lived access_token in python? Or how to update my short_lived to a long_lived in python?

最满意答案

根据内部文档, Python SDK中定义了一个方法extend_access_token

延长有效OAuth访问令牌的到期时间。

这将是你正在寻找的东西。

There is a method extend_access_token defined in the Python SDK which would, as per internal documentation

Extends the expiration time of a valid OAuth access token.

Which would be the thing you are looking for.

更多推荐

本文发布于:2023-07-16 13:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1129005.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   Python   access   facebook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!