13 Mar Edited #1

Do I need to add Facebook's Javascript API?

Ultimate subscriber
Do I need to do this?

Add to the header? Set Up the Facebook SDK for Javascript

<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId      : '{your-app-id}',
      cookie     : true,
      xfbml      : true,
      version    : '{api-version}'
    });
      
    FB.AppEvents.logPageView();  
      
  };

  (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 = "https://connect.facebook.net/en_US/sdk.js";
     fjs.parentNode.insertBefore(js, fjs);
   }(document, 'script', 'facebook-jssdk'));
</script>
Shade 13 Mar
#2
No, you don't. You have to select "web", not JS. Follow the instructions provided for MyFacebook Connect: How to install. Just make sure you enter Flyover's redirect URI when asked.
Shade 13 Mar
#3
https://developers.facebook.com/docs/gra...missions-2

Basically you cannot set an age restriction with any graphical interface, but you can by sending a POST request. This is pretty advanced.
Seeker-Smith 13 Mar
#4
I see it's quite complicated however they have a setting for alcohol which looks to be the easy way to limit access.
Shade 13 Mar
#5
Note that alcohol restrictions differ greatly between countries, in some of them you can drink when underage.
Seeker-Smith 13 Mar
#6
Agreed.