How do I parse a signed request in Facebook C# SDK?

爱⌒轻易说出口 提交于 2019-11-30 15:07:14
Andy Sinclair

Simply call the static method Parse on the FacebookSignedRequest class as shown below (with your app secret, and the signed request):

var DecodedSignedRequest = FacebookSignedRequest.Parse(FacebookContext.Current.AppSecret, SignedRequest);

Now you will see all the data (in JSON format) from the signed request in DecodedSignedRequest.

prabir

Starting from v6:

var fb = new FacebookClient();
dynamic signedRequest = fb.ParseSignedRequest("app_secret", Request.Params["signed_request"]);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!