0

When i am try to change the facebook app id of my site.it returning name and id but it not return other details(email,user_birthday).i added redirect url and i give yes to Client OAuth Login ,Web OAuth Login in fb setting.

sample code in cake php 1.3

$this->set('fb_login_url',$this->facebook->getLoginUrl((array(
                    'redirect_uri' => Router::url(array(
                        'controller' => 'users',
                        'action' => 'register',
                        'admin' => false
                    ) , true),

                   'scope' => 'email,user_birthday'
                ))));

In controller

 $me = $this->facebook->api('/me');

while i print it return only name and id .if everthing is correct or i want to change in fb setting.

Raghul Rajendran
  • 486
  • 2
  • 7
  • 25

0 Answers0