简体   繁体   English

与Facebook整合

[英]Integration With Facebook

I've never used the FaceBook SDK before so I'm not sure what I should be using or whether what I'm thinking of can actually be done. 我以前从未使用过FaceBook SDK,因此不确定我应该使用什么,或者我实际上是否可以想到。 But I want to try to integrate some Facebook functionality with my ASP.NET MVC3 application. 但是我想尝试将一些Facebook功能与我的ASP.NET MVC3应用程序集成。

What I need to do: 我需要做什么:

I want to be able to access someone's Facebook account (granted their permission) and allow them to send out invitations to my website. 我希望能够访问某人的Facebook帐户(已获得他们的许可),并允许他们向我的网站发送邀请。 But, when a friend clicks on the link in the invitation message (whether a wall post, PM... whatever), follows through and registers on the site, I want to be able to track that (maybe by appending the ID or username of the this user to the invitation link, and then extract it from the query string when the invited person/friend registers). 但是,当一个朋友单击邀请消息中的链接(无论是墙上留言,PM等等)之后,一直跟踪并在网站上注册时,我希望能够进行跟踪(也许通过附加ID或用户名)该用户的邀请链接,然后在被邀请的人/朋友注册时从查询字符串中提取该链接)。

Questions: 问题:

  1. From what I've read so far and according to this link , what I think I should be using is the Facebook Connect API. 根据到目前为止的阅读,并根据此链接 ,我认为我应该使用的是Facebook Connect API。 Am I right? 我对吗?
  2. Is what I'm trying to achieve actually doable? 我要达到的目标实际上可行吗? Basically, can I append the username to the invitation link? 基本上,我可以将用户名附加到邀请链接吗? Is Facebook okey with that? Facebook可以接受吗?
  3. Do you have any good resources other than the Facebook Developer Wiki? 除了Facebook Developer Wiki之外,您还有其他任何有用的资源吗? Share them please! 请分享!

PS: I do not want users to login to my website using their Facebook account. PS:我不希望用户使用其Facebook帐户登录到我的网站。 I have my own Membership system. 我有自己的会员系统。 I just want to allow them to invite their friends to register at my website and track that. 我只想允许他们邀请他们的朋友在我的网站上注册并跟踪。 More requirements might arise but for now that is all what I need. 可能会出现更多的要求,但目前这就是我所需要的。

Your help is appreciated! 感谢您的帮助!

EDIT: 编辑:

Ok I went ahead and created some test app using the Developer FB app to do some experiments. 好的,我继续使用Developer FB应用程序创建了一些测试应用程序,以进行一些实验。 One thing I do not understand though... 我不明白的一件事...

Canvas Page: The base URL of your app on Facebook. 画布页面:您的应用程序在Facebook上的基本URL。

Canvas URL: Facebook pulls the content for your app's canvas pages from this base URL. 画布URL: Facebook从此基本URL提取应用程序的画布页面的内容。

So what exactly is the Canvas URL? 那么Canvas URL到底是什么? From what I understand, it's a URL to a resource (page?) on my website which Facebook can display inside the Canvas Page, is that correct? 据我了解,这是我网站上某个资源(页面?)的URL,Facebook可以在“画布页面”中显示该URL(对吗?),对吗?

  1. yes
  2. Yes
  3. Facebook documentation + facebook developers forum, that should be all for you. Facebook文档+ Facebook开发者论坛,应该适合您。 Also, as you are using asp.net mvc, facebooksdk discussion will help you also if you use that library. 另外,当您使用asp.net mvc时,如果使用该库, facebooksdk的讨论也将为您提供帮助。 I will stringly recommend to use that library. 我将强烈建议使用该库。

Also, it seems, you are a beginner on facebook api with c#. 另外,看来您是使用C#的Facebook api的初学者。 If so, you can consider my blog post for beginners on facebook open graph api tutorial in c# . 如果是这样,您可以在c#中的facebook open graph api教程中查看我的初学者博客文章。 There also some other related posts also.Hope you may like them. 也有一些其他相关的帖子。希望您喜欢它们。

Let me know if you wanted to know something else also specifically. 让我知道您是否还想知道其他内容。

  1. Yes
  2. Yes
  3. Nope. 不。 The Developer Wiki has its issues but the Facebook Docs usually solve your problems. 开发者Wiki有问题,但是Facebook文档通常可以解决您的问题。

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

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