kod funkcji wygląda tak:
function getpho($userid) { $userid = "id użytkownika"; $token = "my access token"; $url = "https://api.instagram.com/v1/users/".$userid."/?access_token=".$token; $json = json_decode($get); foreach($json->data as $user) { return $user->profile_picture; } }
Nie mam pojęcia w czym tkwi problem, ktoś wie co może być nie tak?