0

使用 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 ,有什么方法可以在没有获得许可的情况下获得它?

4

0 回答 0