Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

facebook application

Hi,

I need some info. Please let me know if it is possible to develop a Facebook application using c#? Also, any link which can help me how to develop a simple application and add it to facebook applications? I want to learn development of facebook applications but I have no idea how it work?

Please guide me.

Thanks
0
josephm67
Asked:
josephm67
  • 4
  • 3
1 Solution
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
A facebook app is essentially a micro site that runs on your server.    If all you want to start with is a very basic hello world, you can create an index page on your server with an address like http://mysite.com/facebookapp/helloworld/index.html.

1) Make that page a very simple
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Hi Facebook</title>
</head>
<body>
  <h1>Hello World</h1>
</body>
</html>

Open in new window

You must be able to surf to this page by going to http://mysite.com/facebookapp/helloworld

2) Next, go to facebook developer interface https://developers.facebook.com/
Click on Apps > New App
Give your app a displayname, namespace and category.  

3) You are now on the dashboard.  On the left, click Settings.  On the pop up, select App for facebook for the platform.

4) Enter the canvas url http://mysite.com/facebookapp/helloworld/ and secure (https) url https://mysite.com/facebookapp/helloworld/.    The url must end with a backslash.

5) Notice the canvas url you have been given based on your app namespace.    You should now be able to view your hello world. <<edit>> on the canvas url you have been given.

Now the fun can begin.   You can look over the api's to see what is available to use.  For .NET (I have not used) there is an sdk http://facebooksdk.net/docs/reference/

Assuming you already understand what you want to do with the backend .NET, you can modify the page, make the html an aspx page, just make sure it is an  index page so the url ends in a slash.  

It is best to figure out what you want to do first, make a flowchart, wireframe some pages, then find the methods to use to work with your page.  

I have made a half dozen small apps.  They keep changing so you have to be prepared to not just let your app sit and go unchanged. If you are contracting work, make sure you stipulate who is responsible for changes based on facebook changing their api.  

Good luck.
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
On point 5 above, I said, "Notice the canvas url you have been given" that should be, "Notice the canvas page you have been given
0
 
josephm67Author Commented:
thanks for detailed info. So, u mean all app on facebook are running on other servers!! like games or other app which render data in facebook page? I was assuming they run on facebook server?

Also, what is use of Facebook SDK? Is it for developing deskop and mobile applications?
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Facebook apps do not run on facebook as far as I know.  It has always been on your own server/app server.  You can see when you create an app (register an app) on facebook, you have the choice for a facebook app (it runs inside of the facebook interface as a frame) or a web app or mobile app.  A web app means you have a stand alone page that interacts with facebook.  But all those games use the variation I gave.   Of course you have to add your own back end interactivity and use the facebook sdk/api if you want to use any of the graph functions.

The sample I gave you has no interaction.  The SDK is to interact with the facebook api's.  

If you start with a basic web page as you are used to and build from there, you can see how easy it can be.
0
 
josephm67Author Commented:
Oh, I am planning to take project as part of course. The app will integrate into facebook account of user and act as agent. Agent means it will keep listening and checking user account.  It looks that it is not possible using facebook app!!! Any suggestion please
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I think we have answered your original question which was

>it is possible to develop a Facebook application using c#?  Yes, as you know now, you can use any language you want and that your server supports.

>I want to learn development of facebook applications but I have no idea how it work?
You have a great base to work from.

Now you are on a new tangent with this, " I am planning to take project as part of course. The app will integrate into facebook account of user and act as agent."  

I'm not 100% sure what you want to do.  I would think you can set up a listener with javascript/jquery.  This does sound like a new question though.  If this is for course work, just know we can help guide you and answer questions to get you to an answer but can not give you direct answers.

Good luck!
0
 
josephm67Author Commented:
Thanks, I have opened new question, please guide me there. Here is link:

http://www.experts-exchange.com/Programming/Languages/.NET/Q_28397368.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now