Click here to Skip to main content
15,897,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 22-Oct-10 4:58am
v2
Comments
[no name] 20-Oct-10 3:58am    
u wanna change the code for facebook? :P
Shining Legend 20-Oct-10 13:06pm    
yes, once user is authenticated using facebook, user should be redirected back to my website.
Karthik. A 21-Oct-10 23:22pm    
Check out this link - especially pt. 4 - http://developers.facebook.com/docs/authentication/javascript.
Dalek Dave 22-Oct-10 10:59am    
Minor Edit for Grammar.

Its so simple, just use:

response.redirect("YOUR WEBPAGE.aspx");
 
Share this answer
 
Comments
Shining Legend 23-Oct-10 11:08am    
i know but how to know whether the user is authenticated using facebook credentials or not.
SQL
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900