简体   繁体   English

Facebook C#SDK页面标签应用程序

[英]facebook c# sdk page tab application

First of all, sorry for my newbie question... I am google-ing for something like that for days, but still no luck. 首先,对我的新手问题感到抱歉……我几天以来一直在谷歌搜索类似的东西,但仍然没有运气。

I can't find any examples for using the Facebook C# SDK with Facebook Page Tab applications . 我找不到任何将Facebook C#SDK与Facebook Page Tab应用程序结合使用的示例。 Unfortunately most examples are for Facebook Canvas applications and I can't make them work with a Page Tab application. 不幸的是,大多数示例都是针对Facebook Canvas应用程序的,而我无法使其与Page Tab应用程序一起使用。

I really need to see a working example of the following: 我确实需要查看以下示例:

  1. Get whether the User Liked my page, or not. 获取用户是否喜欢我的页面。

  2. If the User Liked my page, show an "authorize" link/button. 如果用户喜欢我的页面,请显示“授权”链接/按钮。

  3. On clicking the "authorize" link/button, ask for User's permission to: access his info, post to his wall, etc. (using facebook's usual dialogs for that) 在单击“授权”链接/按钮时,请征求用户的许可:访问他的信息,张贴到他的墙上等。(为此,使用Facebook的常用对话框)

  4. After the User accepts, redirect him to the "member's only" page. 用户接受后,将其重定向到“会员的唯一”页面。 (...inside the tab application frame. not a canvas-type frame) (...在选项卡应用程序框架内部。不是画布类型的框架)

  5. Whenever an "authorized" User comes back to my tab app, he should be automaticaly redirected to the same "member's only" page. 每当“授权”用户返回到我的标签应用程序时,都应自动将其重定向到同一“仅会员”页面。 (I suppose if I have an example for the previous steps, I won't have a problem figuring this out) (我想如果我有前面步骤的示例,那么弄清楚这一点不会有问题)

Building app for canvas is the same as making it for Page tab. 为画布构建应用程序与为“页面”选项卡构建应用程序相同。 The only difference is the so called "fangate" (liker/non-likers). 唯一的区别是所谓的“ fangate”(喜欢/不喜欢)。 This can be used out of the box only on page tabs and the only thing you need is to decode the signed request passed by facebook. 仅在页面选项卡上可以开箱即用地使用它,您唯一需要做的就是解码Facebook传递的已签名请求。

There is good explanation for doing this with C# here: 使用C#进行此操作有很好的解释:

Decode Signed Request Without Authentication 解码未经身份验证的签名请求

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM