I am making a facebook application to display the user's birthday .........
<? require_once('php-sdk/facebook.php'); $config = array( 'appId' => 'YOUR_APP_ID', 'secret' => 'YOUR_APP_SECRET', ); $facebook = new Facebook($config); $user_id = $facebook->getUser(); ?> <html> <head></head> <body> <? if($user_id) {
Now the problem is This prints the name as expected but prints nothing in place on date of birth ....... When I mentioned later, I heard about facebook rights terms (extended) ..... and from the following http link : //developers.facebook.com/docs/reference/api/user/
I found that we need to allow permissions of users_birthday or friends_birthday .
Now how to enable it in php code? ... Please help with samples ....... I'm sorry if this question seems silly. I am just a new user in Facebook development, and also new to php ....... I tried other examples at stackoverflow.com and it didnβt help me much ...
source share