开发者

facebook sdk authorization on multiple pages

开发者 https://www.devze.com 2023-03-06 19:02 出处:网络
var auth = ne开发者_如何学JAVAw CanvasAuthorizer(); auth.Permissions = new[] { \"user_about_me\" };
var auth = ne开发者_如何学JAVAw CanvasAuthorizer();
            auth.Permissions = new[] { "user_about_me" };

            if (auth.Authorize())
            { get needed data...

If i place this code in default.aspx (Page_Load method), it works fine. If I place this in a viewscore.aspx (Page_Load method), Authorize() returns false. I get to viewscore.aspx by using a link from default.aspx, nothing special. Why is this difference?


I'm not sure, but doesn't Facebook allow canvas authorization only on page which has been given as a Canvas URL?

0

精彩评论

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