pgrimaud/instagram-user-feed

Get profile form mediaDetailed is Incorrect

manguon opened this issue · 0 comments

[media-detailed-by-shortcode.php]
(https://github.com/pgrimaud/instagram-user-feed/blob/master/examples/media-detailed-by-shortcode.php)

Hi Everyone,

I use :
$media = new Media();
$media->setShortCode('CIvZJcurJaW');
$mediaDetailed = $api->getMediaDetailedByShortCode($media);

print_r($mediaDetailed);  --> OK 

print_r($mediaDetailed->getProfile()); --> Incorrect

Result for print_r($mediaDetailed->getProfile());
			echo $mediaDetailed->getProfile()->getId();  -> 4018952  ==>OK 
			echo $mediaDetailed->getProfile()->getUserName();  --> 500px   ==>Incorrect

			//[id:Instagram\Model\Profile:private] => 4018952
			//[userName:Instagram\Model\Profile:private] => 500px
			//[fullName:Instagram\Model\Profile:private] => 500px
			//[biography:Instagram\Model\Profile:private] => 
			//[followers:Instagram\Model\Profile:private] => 0
			//[following:Instagram\Model\Profile:private] => 
			//[profilePicture:Instagram\Model\Profile:private] => 
			//[externalUrl:Instagram\Model\Profile:private] => 
			//[private:Instagram\Model\Profile:private] => 
			//[verified:Instagram\Model\Profile:private] => 1
			//[mediaCount:Instagram\Model\Profile:private] => 0

Please help me!

Thank you so much