How to start a new facebook web application

I made in the last desktop application for facebook (in C # winform), now I have an idea for another application, I already made a prototype for it, and I want to write it on a facebook web application.

  • What are the main differences in creating a facebook desktop application for facebook web applications?
  • Do you have any suggestions on how to launch a web application?
  • How do you manage a database in a web application? (can I use an entity structure or is there something even more suitable / simple for it)
  • Do you have a link to a simple facebook web application that you can provide?

I will write it using C #, so please focus on this language

Thank,

Dan

+3
source share
1

, SDK Facebook, , , Docs . "Hello User" ( -) :

<html><body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
   appId  : 'YOUR APP ID',
   status : true, // check login status
   cookie : true, // enable cookies to allow the server to access the session
   xfbml  : true  // parse XFBML
});
FB.getLoginStatus(function(response) {
  if (response.session) {
    FB.api('/me', function(api_response) {
      document.getElementById("usr-name").innerHTML=api_response.name;
      document.getElementById("app-content").style.display="block";
    });
  }
  else {
    alert("not logged in!") ;
  }
});
</script>
<div id="app-content" style="display:none">
Hello <span id="usr-name"></span>!
</div>
</body></html>

, !

+4

Source: https://habr.com/ru/post/1783985/


All Articles