0 Hi Chinna,
If redirect is not working then you can use anyone one of below options:
window.location = "http://www.yoururl.com";
window.location.href= "http://www.w3schools.com";
window.location.assign("http://www.w3schools.com");
For authentication please follow below URL:
0 url did came....but not come redirect page --->subjects_home.aspx
http://localhost/onlineexamsworld/Account/Login?ReturnUrl=%2fonlineexamsworld%2fusers%2fSubjects_home%3
femail%3d
imvinod34%40gmail.com%
3fid%3d899750040065165%3ffirst_name%3d
Vinod%3flast_name%3dKumar&
email=imvinod34@gmail.com?
id=899750040066165?first_name=Vinod?last_name=Kumar
may be....plz tell me how to user
authenticate token..how to create
0 window.location.replace("/online/Subjects_home?email="+response.email+"?id="+response.id+
"?first_name="+response.first_name+"?last_name=
"+response.last_name);
0
Chinna,
Try to replace your code with new updated code and let know..
Your code
window.location.replace("/online/Subjects_home?email="+response.email+"?id="+response.id+
"?first_name="+response.first_name+"?last_name=
"+response.last_name+"");
New code:
window.location.replace("/online/Subjects_home?email="+response.email+"?id="+response.id+
"?first_name="+response.first_name+"?last_name=
"+response.last_name);
0 Chinna,
I provided some updated code in my previous article.
You can use that one and let know.
0 function FacebookLogin() {
FB.login(function (response) {
if (response.authResponse) {
FB.api('/me', function (response) {
try {
window.location.replace("/onlineexamsworld/users/Subjects_home?email="+response.email+"?id=
"+response.id+"?first_name="+response.first_name+
"?last_name="+response.last_name+"");
catch (err) {
//error
}
});
<input type="button" value="Face Book" class="btn btn-default" onclick="FacebookLogin(); return false;" title="Face Book Login" />
0 Hi Chinna,
Looks like there some issue with javascript code, use update code:
And make sure that response object is available and it has all required properties.
window.location.replace("/online/Subjects_home?email="+response.email+"?id="+response.id+
"?first_name="+response.first_name+"?last_name=
"+response.last_name);