简体   繁体   English

入门:WP7 上的 FB C#

[英]Getting Started: FB C# on WP7

Sorry if this is somewhere in the Discussion history, but I didn't see a "hello world wp7" type sample here or in the Doc section.抱歉,如果这是讨论历史记录中的某个地方,但我在这里或文档部分没有看到“hello world wp7”类型的示例。 Is there a sample kicking around that I can use?有我可以使用的样品吗?

Here's what I'd like to do:这是我想做的事情:

Use FB C# to integrate facebook like and facebook wall posts into my games (XNA based... not sure it matters thou).使用 FB C# 将 facebook 和 facebook 墙贴集成到我的游戏中(基于 XNA...不确定你是否重要)。

1 I'd like to allow players to sign in using their facebook account and "like" a game 1 我想允许玩家使用他们的 facebook 帐户登录并“喜欢”游戏

2 I'd like to save their sign-in state between game play sessions 2 我想在游戏会话之间保存他们的登录 state

3 When a player completes an objective eg kills a boss, I'd like to post a message along with picture to so their friends can see their accomplishment 3 当玩家完成一个目标例如杀死一个老板时,我想发布一条消息和图片,以便他们的朋友可以看到他们的成就

... is this doable? ……这可行吗? Is there a sample for it?有样品吗?

It is most certainly possible to do this.这样做肯定是可能的。 There are probably not many (if any) samples floating around that would do exactly what you mentioned.可能没有多少(如果有的话)样本可以完全按照您提到的方式进行。 I would recommend to go through the API documentation first.我会首先通过API 文档向 go 推荐。 Also, remember that with the Mango SDK update, you now have access to ShareStatusTask and ShareLinkTask , that allow Facebook integration to be present in your application as long as an active Facebook account is registered with the device.另外,请记住,通过 Mango SDK 更新,您现在可以访问ShareStatusTaskShareLinkTask ,这允许 Facebook 集成出现在您的应用程序中,只要一个活动的 ZD85544FCE402C7A2A96EDA48078 设备注册了帐户。

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

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