title: Sync Drupal 7 calendar with facebook birthdays
body: <p>I am using a Drupal 7.15 in my application and I have calendar module and events_calendar used to display the calendar and add and edit events. </p>
  
  <p>I have a requirement of importing/synching facebook birthdays in this calendar. </p>
  
  <p>I have used the below code to get the birthdays from facebook and i am able to get the raw data, </p>
  
  <pre><code>$token_url = "https://graph.facebook.com/oauth/access_token?client_id="
  . $app_id . "&amp;redirect_uri=" . urlencode($my_url)
  . "&amp;client_secret=" . $app_secret
  . "&amp;code=" . $code;
  $access_token = file_get_contents($token_url);
  
  $graph_url = "https://graph.facebook.com/me/friends?fields=id,name,birthday&amp;".$access_token;
  $result = json_decode(file_get_contents($graph_url));
  </code></pre>
  
  <p>but how can i <strong>display this in my calendar as an event</strong>?</p>
  
  <p>Please help.</p>
  
  <p>Thanks in advance</p>