[HELP] can anyone help me on this code of my LP?

eciruam

Banned - Selling via PM
Joined
May 18, 2013
Messages
654
Reaction score
72
BTW here is the code of my LP of instagram FREE followers. the problem is the post of the user is not appearing. what code should I change? hopefully someone can help me about this. Check photo below for the problem

$username = $_GET['username'];
$url = "http://www.instagram.com/" . $username;
$data = @file_get_contents($url);
preg_match('/\"edge_followed_by\"\:\s?\{\"count\"\:\s?([0-9]+)/',$data,$followed_by);
preg_match('/\"edge_saved_media\"\:\s?\{\"count\"\:\s?([0-9]+)/',$data,$posts);
preg_match('/\"edge_follow\"\:\s?\{\"count\"\:\s?([0-9]+)/',$data,$following);
preg_match('/\"full_name"\:\s?\"([a-zA-Z ]+)/',$data,$full_name);
preg_match('/\"profile_pic_url"\:\s?\"((http?:\/\/)?([^\/\s]+\/)(.*?)")/',$data,$profile_pic);

if ($data === false) { ?>
<div class="error-message">
<i class="fa fa-times-circle-o" aria-hidden="true"></i>
<h1>Oops, error</h1>
<div class="confirm-error-message">It seems you entered an invalid Username which we can't find!</div>
<div class="error-button-wrapper"><a class="error-button-back button-style-1" href="javascript:history.go(-1)">Go Back</a></div>
</div>
<?php }
else { ?>
<div class="profile-pic-wrapper col-md-12">
<div class="flip-container">
<div class="card">
<img class="profile-picture-img back" alt="Profile Picture Image" src="<?php if (!empty($profile_pic)) { echo $profile_pic[1]; } ?>"/>
<img class="profile-picture-img front" alt="Profile Picture Image" src="<?php if (!empty($profile_pic)) { echo $profile_pic[1]; } ?>"/>
</div>
</div>
</div>
<div class="row no-margin">
<div class="profile-info-wrapper col-xs-4">
<h4>Posts:</h4>
<span><?php if (!empty($posts)) { echo $posts[1]; } ?></span>
</div>
<div class="profile-info-wrapper col-xs-4">
<h4>Followers:</h4>
<span><?php if (!empty($followed_by)) { echo $followed_by[1]; } ?></span>
</div>
<div class="profile-info-wrapper col-xs-4 last">
<h4>Following:</h4>
<span><?php if (!empty($following)) { echo $following[1]; } ?></span>
</div>
 

Attachments

  • problem.jpg
    problem.jpg
    84.9 KB · Views: 170
Try changing this line:
Code:
preg_match('/\"edge_saved_media\"\:\s?\{\"count\"\:\s?([0-9]+)/',$data,$posts);

to

Code:
preg_match('/\"edge_owner_to_timeline_media\"\:\s?\{\"count\"\:\s?([0-9]+)/',$data,$posts);
 
Back
Top