如何使用Facebook将用户重定向到我们的网站页面 [英] how to redirect user to our site page using facebook

查看:124
本文介绍了如何使用Facebook将用户重定向到我们的网站页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,我在其中使用Facebook登录凭据来验证用户身份.

我可以执行此操作,但是我希望在使用Facebook凭据对用户进行身份验证后将用户重定向到我的网站页面.

I have a website where in I am using facebook login credentials to authenticate users.

I am able to do this but I want to redirect the user to my website page once the user is authenticated using facebook credentials.

How can I do this?

推荐答案

它是如此简单,只需使用:

response.redirect("YOUR WEBPAGE.aspx");
Its so simple, just use:

response.redirect("YOUR WEBPAGE.aspx");


If you want to know about the crdentials of the currently signed in user, then use:
  if (User.IsAuthenticated==true)
  {
   //Whatever you want
  }
Or if you want to get the username of the currently signed-in user then use:
  Context.User.Identity.Name


这篇关于如何使用Facebook将用户重定向到我们的网站页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆