Facebook Graph API will not give me picture data

后端 未结 6 813
傲寒
傲寒 2021-01-12 22:59

Using PHP 5.2.11 and the new facebook graph code...

If I call

$facebook->api(\"/me\");

I get a proper response:

array
  \'id\' =>          


        
6条回答
  •  长情又很酷
    2021-01-12 23:22

    There is an even simpler way, using the provided facebook api, just call:

    $facebook->api("/me?fields=picture");

    This will make your code simpler and more elegant.

提交回复
热议问题