Hi,
I require to integrate face book with my asp .net appl.
Follows the steps that i have chased for it:
• Have Made face-book application from face-book and got application key and secret key.
• Have employed that application key and secret key in my app.
See my code below-
/*
var fbWebContext = FacebookWebContext.Current;
if (fbWebContext.IsAuthorized())
{
var fb = new FacebookWebClient(fbWebContext);
dynamic result = fb.Get("/me");
string fbUserName = result["username"];
string fbEmail = result["email"];
MembershipUser user = Membership.GetUser(fbUserName);
//Set this URL in
string fbProfilePicUrl = "http://graph.facebook.com/"+ fbUserName +"/picture";
//Check if a user exists in our system - using membership class
//if exists - set login cookie - and consider a user authenticated
//else register a user with cricbattle
//More info is explained in cricbattle page.
}
*/Here in this code , fbWebContext.IsAuthorized() is for eternity returning false.
Can anyone inform me why it is everytime false
Pls help me.
Thanks
------------------------------------------------------------------------
- This content has been Re-published. Please refer to Stack Overflow (http://stackoverflow.com/) for the original post. click here
45 weeks 6 days ago