I need to create simple php application to check friends who have birthday today and tag them saying happy birthday.
At least I need to if it's possible or not?
Login using CURL: Not possible without user interaction. Check out the Facebook docs for information about Login possibilities: https://developers.facebook.com/docs/facebook-login/v2.1
Post on the user wall: https://developers.facebook.com/docs/graph-api/reference/v2.1/user/feed/
You need to authorize a user with the publish_actions permission for that. The better (and less spammy) way would be the Share Dialog though: https://developers.facebook.com/docs/sharing/reference/share-dialog
That being said, your idea of getting the birthdays of your friends and tagging them to say "Happy Birthday", i am afraid it´s not possible for several reasons:
See here: Post to a Facebook user's wall with cURL PHP
Code from that topic just in-case it gets removed:
$attachment = array(
'access_token' => $token,
'message' => $msg,
'name' => $title,
'link' => $uri,
'description' => $desc,
'picture'=>$pic,
'actions' => json_encode(array('name' => $action_name,'link' => $action_link))
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/fbnameorid/feed');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //to suppress the curl output
$result = curl_exec($ch);
curl_close ($ch);
Good luck!