简体   繁体   English

客户端代码以获取访问令牌不起作用

[英]client side code to get the access token not working

I am using client side authenticantion code to get an acess token from http://developers.facebook.com/docs/authentication/client-side/ (without JS SDK) to one of the pages for which I am a manager. 我正在使用客户端身份验证代码将访问令牌从http://developers.facebook.com/docs/authentication/client-side/ (无JS SDK)获取到我是管理员的页面之一。 I have cahnged the App id and the graph url (https://graph.facebook.com/page_id) to get the access token. 我已经更改了应用程序ID和图形URL(https://graph.facebook.com/page_id)以获取访问令牌。 But when I am running the script I get an error in the FB page. 但是,当我运行脚本时,在FB页面中出现错误。 MY url reads (https://www.facebook.com/dialog/oauth?client_id=app_id&redirect_uri=file:///C:/work/dashboard/FBGraph.html&response_type=token). 我的网址为(https://www.facebook.com/dialog/oauth?client_id=app_id&redirect_uri=file:///C:/work/dashboard/FBGraph.html&response_type=token)。 Please advise. 请指教。

Thanks, Madhura 谢谢,Madhura

似乎您正在重定向到硬盘上的本地文件,redirect_uri = file:/// C:/work/dashboard/FBGraph.html,您需要重定向到与列出的Web URL相关的真实Web URL。您的应用。

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

相关问题 在客户端获取Facebook访问令牌 - Get facebook access token in client side 使用从客户端收到的Google授权代码在服务器端javascript(nodejs)上获取访问令牌 - Get access token on server side javascript (nodejs) using google authorization code received from client side 在客户端使用JSON获取fb访问令牌 - Get fb access token using JSON on client side 如何从登录Google登录(仅限客户端的应用程序)中正确获取访问令牌? - How to properly get Access Token from logged in Google Sign In (client-side only app)? Cors 在尝试使用 react/js 在客户端获取 Instagram 访问令牌时被阻止 - Cors block while trying to get Instagram access token on client side using react/js Axios 无法获取访问令牌? - Axios is not working to get access token? 获取 pinterest 访问令牌的代码 - Code to get access token for pinterest 客户端 JS 函数中 Facebook / Instagram 的访问令牌 - Access token for Facebook / Instagram in client side JS function 隐藏内容丰富的空间 ID 和访问令牌,客户端 javascript 文件 - Hiding contentful Space id and access token, client side javascript file 如何刷新客户端的Google API访问令牌? - How to refresh a client-side Google api access token?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM