如何通过 Facebook c# SDK 获取signed_request
我创建了一个应用程序,将用作公司 Facebook 页面内选项卡的 iframe 应用程序。就我而言,我有一个 MVC 2 Web 应用程序。我有两个视图,如果用户已经喜欢该页面,我想显示一个视图,如果用户不喜欢该页面,我想显示另一个视图。我一直在查看这篇文章,它几乎描述了我的问题。
读取 OAuth2.0 Signed_Request Facebook 注册 C# MVC
希望有人能对此有所启发。
I've created an app that I'm going to be using as an iframe app for a tab inside my company's facebook page. On my side of things I've got a MVC 2 web app. I have two Views one that I want to display if the user already likes the page, and another when they don't. I've been looking at this entry which pretty much describes my issue.
Read OAuth2.0 Signed_Request Facebook Registration C# MVC
In the signed_request there is a page property which contains a boolean names liked which is the item I need to check. In the answer Nathan says you can use the SDK to not have to do it 'manually'. My question is how. I've got the SDK and I'm trying in ernest to figure out how to get the data I need out and also whether I need to decorate my Actions with any attributes?
Hoping someone can shed some light on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样使用 CanvasContext 对象:
Use the CanvasContext object like this: