Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Facebook XFBML like button without appId

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #166951
    fooman
    Participant

    Hi!
    I’m curious what the appId does exactly when creating a like button. I go and create the like button through ajax, dynamically. But first I put the following right after my <body> tag opens:

    <div></div>
    <script>
        window.fbAsyncInit = function() {
            FB.init({appId: 'your app id', status: true, cookie: true,
                    xfbml: true});
        };
        (function() {
            var e = document.createElement('script'); e.async = true;
            e.src = document.location.protocol +
                    '//connect.facebook.net/en_US/all.js';
            document.getElementById('fb-root').appendChild(e);
        }());
    </script>
    

    So it still seems to work when I leave in appId: ‘your app id’.
    Am I, as the developer (not the owner of the FB page), supposed to be the one creating the appId’s? Or am I supposed to hassle the client to figure out how to create/register their app’s with FB?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.