Hi, i am using facebook authentication for my application by using javascript. in that i am sending name value to my aspx page through ajax post method.
my problem is how to get the name value in aspx.cs page.
Here is my code:
FB.Event.subscribe('auth.statusChange', function (response) {
if (response.authResponse) {
// console.log(response);
// user has auth'd your app and is logged into Facebook
FB.api('/me', function (me) {
if (me.name) {
var userName = me.name;
$.ajax({
type: "post",
url: "WebForm1.aspx",
data: "name=" + userName,
contentType:"application/x-www-f ...
Go to the complete details ...