使用Facebook C#sdk我读了signed_request并有以下详细信息
if (Request.Params["signed_request"] != null)
{
dynamic signedRequest = fb.ParseSignedRequest(ConfigHelper.FacebookAppSecret,
Request.Params["signed_request"]);
Session["signedRequest"] = signedRequest.ToString();
if (signedRequest.page != null)
{
requestFromFanPage = true;
var lPid = signedRequest.page.id != null ? (string) signedRequest.page.id : "";
Session["lPid"] = lPid.ToString();
var lLiked = signedRequest.page.liked ?? "";
Session["lLiked"] = lLiked;
userLiked = lLiked;
}
var userid = signedRequest.user_id ?? "";
Session["lUserId"] = userid;
}
我得到以下没有Facebook ID的结果:(
{"algorithm":"HMAC-SHA256","issued_at":1370416053,"page":{"id":"490007204401534","liked":true,"admin":false},"user":{"country":"au","locale":"en_US","age":{"min":21}}}
我需要facebookuserid,有没有办法让我获得许可?