I need to get the picture of the replies to comments i've used this so far to get the pictures of the first level comments it looks like this.
$reso = $this->getFB()->get("$id/comments?fields=likes,message,comments,from{
likes,comments,name,picture
}", $pageToken);
This returns the picture with no problems but only for the first level of comments i have no idea how to get the picture for the replies to a comment?
Current Array Returned
array:2 [▼
"data" => array:13 [▼
0 => array:4 [▼
"message" => "OOh nice!"
"from" => array:4 [▼
"likes" => array:2 [▶]
"name" => "McKenzie Flavius"
"picture" => array:1 [▶]
"id" => "186894038315206"
]
"id" => "1687724354827858_1687724421494518"
"comments" => array:2 [▼
"data" => array:1 [▼
0 => array:2 [▼
"message" => "replied ooh nice"
"id" => "1687724354827858_1687769078156719" //I need to get picture in this array here!
]
]
"paging" => array:1 [▶]
]
]
1 => array:4 [▶]
2 => array:4 [▶]
3 => array:4 [▶]
4 => array:4 [▶]
5 => array:3 [▶]
6 => array:4 [▶]
7 => array:4 [▶]
8 => array:4 [▶]
9 => array:4 [▶]
10 => array:4 [▶]
11 => array:4 [▶]
12 => array:4 [▶]
]
"paging" => array:1 [▶]
]
As always all help appreciated
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire