Skip to content

IG User Mentioned Comment

Justin Stolpe edited this page May 21, 2022 · 2 revisions

Data on a comment the user was mentioned in.

Code

use Instagram\User\MentionedComment;

$config = array( // instantiation config params
    'user_id' => '<IG_USER_ID>'>,
    'comment_id' => '<COMMENT_ID>', // id of comment the user was mentioned
    'access_token' => '<ACCESS_TOKEN>',
);

// instantiate mentioned comment
$mentionedComment = new MentionedComment( $config );

// get data on the comment
$mentionedCommentInfo = $mentionedComment->getSelf();
Clone this wiki locally