我应该在哪里使用 OAuth 对话框?

发布于 2024-12-20 02:16:47 字数 472 浏览 2 评论 0原文

Facebook 开发者网站上,它建议您在使用

https 的 地方使用 OAuth 对话框://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_CANVAS_PAGE

替换 YOUR_APP_IDYOUR_CANVAS_PAGE 根据你的情况,

我的问题是我应该把它放在哪里?

我是否可以将其放在画布页面的 index.php 中的某个位置?

或者除了创建您的应用程序之外,我是否需要创建一个网站,在其中应使用 OAuth 对话框显示我的应用程序的信息以及指向我的应用程序的链接?

on the facebook developers site it recommends using the OAuth Dialog where you use

https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_CANVAS_PAGE

replacing the the YOUR_APP_ID and YOUR_CANVAS_PAGE with what you have

my question is where am I supposed to put this?

do I put this somewhere on my index.php for my canvas page?

or aside from creating your app, do I need to make a website where info of my app should be displayed together with a link to my app using the OAuth Dialog?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风蛊 2024-12-27 02:16:47

您需要创建包含应用程序内容的网站,因为 facebook 会将其显示在 iframe 中。

至于你提到的链接,它用于获取权限(基本信息、用户电子邮件等)。如果您需要有关用户的此类信息,则必须将他重定向到那里,以便他可以授予权限。如果您的应用不需要有关用户的任何信息,您可以跳过授权部分。

You need to create website that will have the content of the app, since facebook will display it in the iframe.

As for the link you mentioned, it is used to get permissions (basic information, user's email etc). If you need that kind of information about the user, you have to redirect him there so he can grant the permission. If your app doesn't require any information about the user, you can just skip the authorization part.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文