MySQL
- 1 ответ
- 0 вопросов
1
Вклад в тег
$me = curl_init();
curl_setopt($me, CURLOPT_URL, "https://graph.facebook.com/v2.5/{COMMUNITY_ID}/posts/?fields=description,full_picture,message&format=json&access_token={ACCESS_TOKEN}&limit=25");
curl_setopt($me, CURLOPT_RETURNTRANSFER, true);
$curl = json_decode(curl_exec($me), true);
$data = $curl['data'];
static $id = 0;
while ($id <= 15) {
echo ' <h1>' . $data[$id]["message"] . '</h1>';
$id--;
}
?>