我的最终目标是访问app_data,但是signed_request对我来说总是空的。我用facebook c#做了一个非常简单的facebook iframe应用。
dynamic signedRequest = FacebookWebContext.Current.SignedRequest.Data; //null error
dynamic data = signedRequest.Data;我读到这可能与tab url有关。我的应用程序有如下urls : localhost:52212/、localhost:52212/Home/About和localhost:52212/Home/MoreStuff。我将选项卡url设置为localhost:52212/Home/
我尝试了一些我在这里看到的使用FacebookSignedRequest.Parse的JSON方法,但这些方法也是空的。
发布于 2011-07-28 05:27:25
我认为Tab URL应该始终位于Canvas URL下,如下所示:
画布URL的http://site:port/canvasdir =>
用于选项卡URL的http://site:port/canvasdir/tabdir =>
https://stackoverflow.com/questions/6850562
复制相似问题