简体   繁体   English

从Graph Api获取用户访问令牌探索Facebook并将其扩展

[英]Get user access token from Graph Api Explore facebook and extend it

I know how to get short-term user access token then extend it to long-term access token (facebook) when i have my own app id and app secret. 当我有自己的应用程序ID和应用程序密码时,我知道如何获取短期用户访问令牌,然后将其扩展为长期访问令牌(facebook)。 But now I want to get and extend the access token provided by Graph Api Explorer. 但是现在我想获取并扩展Graph Api Explorer提供的访问令牌。 How can I do it ? 我该怎么做 ? If we do it manually, we get an access token from Graph Api Explorer but its short term and will expires in about 1 hours, how can I make it a long-term access token? 如果我们手动执行此操作,则会从Graph Api Explorer获得访问令牌,但是访问令牌是短期的,并且将在约1个小时后过期,我如何使其成为长期访问令牌?

This is not possible. 这是不可能的。 To extend the Access Tokens, you must utilize an app_id as well as an app_secret . 要扩展访问令牌,必须使用app_idapp_secret I assume you don't have the app_secret of the Graph Explorer, so this might get difficult. 我假设您没有Graph Explorer的app_secret ,因此这可能会变得困难。

See 看到

I still have this issue and Tobi not understood the problem. 我仍然有这个问题,Tobi不了解这个问题。 The Facebook Access Tokens are really problematic most of times and this is one of the bigger issue. Facebook访问令牌在大多数情况下确实是有问题的,这是更大的问题之一。

I have a facebook stream plugin where user can show their personal profile posts. 我有一个Facebook流插件,用户可以在其中显示其个人资料信息。 But the only access token that work is the one generated by Graph API Explorer and this can not be extended. 但是唯一有效的访问令牌是由Graph API Explorer生成的访问令牌,因此无法扩展。 Any other access token associated to an APP will not work. 与APP相关联的任何其他访问令牌都将无效。

Is incredible that Facebook not have a tool to allow users to generate an access token for access their personal informations. 令人难以置信的是,Facebook没有允许用户生成访问令牌以访问其个人信息的工具。 Currently there is not any working solution. 当前没有任何可行的解决方案。 Incredible. 难以置信。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM