[英]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.