Solved

facebook application

Posted on 2014-03-24
8
272 Views
Last Modified: 2014-03-25
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
Comment
Question by:josephm67
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39952335
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
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39952349
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
 

Author Comment

by:josephm67
ID: 39952592
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39952604
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
 

Author Comment

by:josephm67
ID: 39952648
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
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39952756
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
 

Author Closing Comment

by:josephm67
ID: 39954742
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

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, you will learn how to create custom audiences using your own email lists. You can use this custom audience as your target audience for advertising on Facebook. This allows you to advertise to your existing audience. Once you've crea…
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question