I am using Facebook SDK for .NET 7.0.6
With this code I can get name, first name, last name and other attributes, but not the id of the user.
var _fb = new FacebookClient(Session["FbuserToken"].ToString());
dynamic resultMe = _fb.Get("me?fields=id");
return resultMe.id;
How can I get it?
IDs are "App Scoped", a user will get a different (but unique) ID per App. In the API Explorer, you most likely did not select YOUR App, but only the official API Explorer App - which results in a different ID, of course.
In other words: You DO get an ID, and it is the correct one to identify returning users.