简体   繁体   中英

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. But I want to try to integrate some Facebook functionality with my ASP.NET MVC3 application.

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. 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).

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. 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?
  3. Do you have any good resources other than the Facebook Developer Wiki? Share them please!

PS: I do not want users to login to my website using their Facebook account. 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. One thing I do not understand though...

Canvas Page: The base URL of your app on Facebook.

Canvas URL: Facebook pulls the content for your app's canvas pages from this base URL.

So what exactly is the 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?

  1. yes
  2. Yes
  3. Facebook documentation + facebook developers forum, that should be all for you. Also, as you are using asp.net mvc, facebooksdk discussion will help you also if you use that library. I will stringly recommend to use that library.

Also, it seems, you are a beginner on facebook api with c#. If so, you can consider my blog post for beginners on facebook open graph api tutorial in c# . 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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