I am working in c# 4.0 to read a signed request I am using the following code
FacebookApp fap = new FacebookApp(); fap.AppId = \"789485219211963\"; // App ID
Open the Package Manager Console and execute the following:
update-package newtonsoft.json
This worked for me.