简体   繁体   中英

Facebook: ckeckin photos?

I'm doing:

     $checkins = $facebook->api('/me/checkins', 'get');       
      for( $i = 0; $i < count ($checkins['data']); $i ++)
      { //printing the info here
}

And I'm obtaining an array with the checkin id, my id, my name, the id, name and location of the place where I have done the checkin, the application used to do the cheking and the date and time when the checkin was done .. everything but the photos I attached to each checkin ..

Here's an example of the array I'm getting:

Array
(
    [0] => Array
        (
            [id] => 1922426782905
            [from] => Array
                (
                    [name] => Myname
                    [id] => 14111407
                )

            [place] => Array
                (
                    [id] => 167250246640777
                    [name] => Francap
                    [location] => Array
                        (
                            [street] => 39 Main Street
                            [city] => NY
                            [country] => US
                            [zip] => 11036
                            [latitude] => 40.47725
                            [longitude] => -3.67557
                        )

                )

            [application] => Array
                (
                    [name] => Facebook for Android
                    [id] => 350682231728
                )

            [created_time] => 2011-05-16T08:16:57+0000
        )






...}

As you can see there are no photos.

Is there a way to get these photos?

Thanks a ton!

you have to take the extended permission of user_photos. Then you will get the src attribute of those photos also.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM