title: Failed to send batch app notifications using facebook php SDK
body: <p>I'm trying to send batch notification from my app to several app users after runing the below code I get an error in the response:</p>
  
  <pre><code>"{"error":{"message":"(#100) Must specify a non-empty template `param","type":"OAuthException","code":100}}"`
  </code></pre>
  
  <p>Although the template param is set...</p>
  
  <p>Appreciate any help on what am i doing wrong..</p>
  
  <p>Here is the code I use:</p>
  
  <pre><code>$batched_request = array();
  
  foreach ($users as $idx =&gt; $user) {
  
  $request = array(
         'method'  =&gt; 'POST',
         'relative_url'  =&gt; '/' . $user['id'].'/notifications',
         'access_token' =&gt; $app_access_token,                                    
         'template' =&gt; $template,                                    
         'href' =&gt; $href        
        ); 
  
   $batched_request[] = json_encode($request); 
  
  }
  
  $params = array('batch' =&gt; '[' . implode(',',$batched_request) . ']' );
  try {
  
      $response = $facebook-&gt;api('/','POST',$params);
  
  
  } catch(FacebookApiException $e) {
           error_log($e);               
  }
  </code></pre>