Solved

facebook application

Posted on 2014-03-24
8
266 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
  • 4
  • 3
8 Comments
 
LVL 52

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 52

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 52

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 52

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now