开发者

accessing signed_request

开发者 https://www.devze.com 2023-03-23 03:47 出处:网络
My ultimate goal is to access app_data, but signed_request is always null for me.I made a very simple facebook iframe app with facebook c#.

My ultimate goal is to access app_data, but signed_request is always null for me. I made a very simple facebook iframe app with facebook c#.

dynamic signedRequest = FacebookWebContext.Current.SignedRequest.Data; //null error
dynamic dat开发者_如何学Ca = signedRequest.Data;

I read that this may be related to tab url. My app has urls such as localhost:52212/ , localhost:52212/Home/About, and localhost:52212/Home/MoreStuff. I set my tab url to localhost:52212/Home/

I tried a few JSON methods I saw posted here using FacebookSignedRequest.Parse but those were null as well.


I think the Tab URL should always be under the Canvas URL like this:

http://site:port/canvasdir => for canvas URL

http://site:port/canvasdir/tabdir => for tab URL

0

精彩评论

暂无评论...
验证码 换一张
取 消