I am using this code to post a photo to my applications photo album. My question is how can i convert the FBID that this code returns into a shore PID for the photo?
$file= 'test.jpg';
$args = array('message' => 'Photo Captio开发者_JAVA技巧n');
$args['image'] = '@' . realpath($file);
$data = $facebook->api('/me/photos', 'post', $args);
print_r($data);
This returns an array with ID being the FBID of the photo uploaded. I need the PID of the photo.
Thanks
I figured it out. For anyone who wants to know i did FQL like this:
SELECT pid FROM photo WHERE object_id = "FBID"
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论