Application error while uploading SDK on facebook

Code on my web page:

<body class="popup">
    <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        // init the FB JS SDK
        FB.init({
          appId      : '476947702378530',                    // App ID from the app dashboard
          channelUrl : '//www.majorforms.com/fb_channel.php?_lang_id=1',// Channel file for x-domain comms
          status     : true,                                 // Check Facebook Login status
          xfbml      : true                                  // Look for social plugins on the page
        });

        // Additional initialization code such as adding Event Listeners goes here
      };

      // Load the SDK asynchronously
      (function(d, s, id){
         var js, fjs = d.getElementsByTagName(s)[0];
         if (d.getElementById(id)) {return;}
         js = d.createElement(s); js.id = id;
         js.src = "//connect.facebook.net/en/all.js";
         fjs.parentNode.insertBefore(js, fjs);
       }(document, 'script', 'facebook-jssdk'));
    </script>

      

After loading this page in the browser, I get this error in the firebug console:

 Application Error: There was a problem getting data for the application you requested. The application may not be valid, or there may be a temporary glitch. Please try again later.

      

I really do not understand. I don't have a real app, I just used the facebook account id (company). I don't want to create a new facebook app, I just want to use the credentials of a specific facebook account. How should I do it?

+2


source to share


1 answer


I'm not one hundred percent sure, but you need to create an app to use the facebook sdk because in the FB.init method it explicitly asks for the Facebook app id.



Building a Facebook app doesn't necessarily mean you actually have a facebook app, there is a dedicated section for "Website using Facebook" in the app setup screen of the Facebook developers page, so I think that's how you should go.

+3


source







All Articles