ASP.NET MVC3和Facebook的整合 [英] ASP.NET MVC3 and Facebook integration

查看:165
本文介绍了ASP.NET MVC3和Facebook的整合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正要开始使用MVC3一个新的ASP.NET项目,因为有些要求是关于facebook集成,我需要你对下列问题的建议:

I'm just about to start a new ASP.NET project using MVC3, and since some of the requirements are about facebook integration, I need your advice on the following issues:

1 - 它是可以实现的,以我的会员用户连接到thier Facebook账户,以便当用户份额/加上在我的网站的事件/评论,我可以自动使用他/她的Facebook帐户分享这些行动?

1- Is it achievable to connect my Membership users to thier Facebook accounts so whenever a user share/add/comment on an event on my website, I can automatically share these actions using his/her Facebook account?

2 - 还创建Facebook的事件,当用户在我的网站创建一个,如果他/她更新的事件信息,我可以更新他们在Facebook上的能力了。

2- also the ability to create Facebook events when the user create one on my site, and if he/she updates the event information, I may update them on Facebook too.

3可以这样使用Facebook Connect来实现,或者这仅仅是使用他们的Facebook账户来验证用户身份?

3- Can this be achieved using Facebook Connect, or this is only to authenticate users using their Facebook accounts?

4-如何使用图形API从我的MVC解决方案,我知道有在$一个Facebook C#SDK C $ CPLEX HTTP: //facebooksdk.$c$cplex.com ,但它会满足我的需要提及与否。

4- How about using Graph API from my MVC solution, I know that there is a Facebook C# SDK on Codeplex http://facebooksdk.codeplex.com, but will it satisfy my mentioned needs or not.

先谢谢了。

推荐答案

我已经做了类似的事情最近。根据我的经验:

I've done something similar recently. Based on my experience:


  1. 是的,你可以使用Facebook账号连接你的会员资格,但它并不能保证你的用户活动将被推到Facebook。 (用户可以与Facebook的身份验证登录)

  1. Yes, you can connect your membership with a Facebook account, however it does not guarantee your user activity will be pushed to Facebook. (users have to log in with Facebook authentication)

同上。本博客文章确实描述它的一个好工作:<一href=\"http://amirrajan.net/Blog/asp-mvc-and-facebook-single-sign-on\">http://amirrajan.net/Blog/asp-mvc-and-facebook-single-sign-on

Same as above. This blog post does a good job of describing it: http://amirrajan.net/Blog/asp-mvc-and-facebook-single-sign-on

没有,Facebook的连接只需要身份验证的照顾。欲了解更多信息,请访问:<一个href=\"http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/\">http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/

No, facebook connect only takes care of authentication. For more information, check: http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/

我没有试过你提到Facebook的SDK。不过,我相信Facebook的图形API已经做了很好的工作,为您和将满足您的要求

I have not tried the Facebook SDK you mentioned. However, I believe facebook Graph API already does a good job for you to and will fulfil your requirement

这篇关于ASP.NET MVC3和Facebook的整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆