Skip to content
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.

i can't get comments datas #1

Closed
cced3000 opened this issue Jun 13, 2017 · 2 comments
Closed

i can't get comments datas #1

cced3000 opened this issue Jun 13, 2017 · 2 comments

Comments

@cced3000
Copy link

cced3000 commented Jun 13, 2017

<?php $mediaId='1536250261863951712'; $comments = $apiClient->comments->get($mediaId)->getData(); print_r($comments);

Fatal error: Uncaught InvalidArgumentException: "1536250261863951712" is not a valid media identifier. in D:\phpStudy\WWW\img\vendor\valga\instagram-rest-api\src\Endpoint.php:62 Stack trace: #0 D:\phpStudy\WWW\img\vendor\valga\instagram-rest-api\src\Endpoint\Comments.php(52): InstagramRestApi\Endpoint->filterMediaId('153625026186395...') #1 D:\phpStudy\WWW\img\examples\userMedia.php(13): InstagramRestApi\Endpoint\Comments->get('153625026186395...') #2 {main} thrown in D:\phpStudy\WWW\img\vendor\valga\instagram-rest-api\src\Endpoint.php on line 62

@valga
Copy link
Owner

valga commented Jun 16, 2017

Valid media identifier looks like this one: 823251211150230726_25025320. Second number is media owner's account ID.

@valga valga closed this as completed Jun 16, 2017
@valga
Copy link
Owner

valga commented Jun 16, 2017

So, in your case it is 1536250261863951712_222356238.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants