title: Is there any way to create facebook event via API as graph api is no longer available
body: <p>I want to create Facebook Event using API. I got to know that Graph API is no longer available to publish event.</p>
  
  <p>I also tried Javascript SDK and PHP SDK but getting same error message.</p>
  
  <p>Is there any way to create Facebook Event via Javascript API.</p>
  
  <p>Following is the code I am using in jquery but error is coming.</p>
  
  <pre><code>&lt;script&gt;
    window.fbAsyncInit = function() {
      FB.init({
        appId      : '1517079011880399',
        xfbml      : true,
        version    : 'v2.1'
      });
    };
  
    (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_US/sdk.js";
       fjs.parentNode.insertBefore(js, fjs);
     }(document, 'script', 'facebook-jssdk'));
  
  
     function test(){
          FB.login(function(){
               FB.api('/me/events','post',{name:"JS-SDK Event",start_time:1272718027,location:"Beirut"},function(resp) {
                  console.log(resp);
                  alert(resp.id);
              }); 
          }, {scope: 'publish_actions'});
  
     }
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>But this error is coming...</p>
  
  <p><strong>"(#12) events management API is deprecated for versions v2.0 and higher"</strong></p>
  
  <p>I am searching over goolge but not getting any way to create fb event.</p>
  
  <p>Is there any way or not ??</p>