开发者

facebook comments system for asp.net mvc 2 website

开发者 https://www.devze.com 2023-03-07 19:35 出处:网络
I know this sort of question has probably been asked many times before, but I can\'t find an answer. I have an asp.net mvc 2 website for which I\'ve built a membership system based on the standard as

I know this sort of question has probably been asked many times before, but I can't find an answer.

I have an asp.net mvc 2 website for which I've built a membership system based on the standard asp.net membership provider. I would like to add to that website a comments system where users, in order to comment on a topic, will be able to log into their facebook account (from within my website), and then make the comment. The comment should be shown on my website of course, and also in their facebook account, on their wall, or something similar, with something like "user x posted a comment on website y".

So my quest开发者_开发知识库ion is how do I build a facebook based comment system for my asp.net mvc 2 website using facebook c# sdk, or any other way ? Code samples or tutorial links would be great, thanks ...


Just use the new facebook comment social plugin

http://developers.facebook.com/docs/reference/plugins/comments/


I don't know about a specific example-- but you're going to need to use the Facebook API to do OATH authentication. You'll end up getting an authtoken back that you can then associate with your ASP.NET membership provider user. There are other API calls which will then allow users to post from your application to their walls and also allow your application to read from their walls. Of course the user will have to give your application the appropriate permissions. There are some libraries which will make your life easier so you don't have to write things from scratch.

0

精彩评论

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