Plugin Directory

Changeset 1860326


Ignore:
Timestamp:
04/18/2018 10:23:05 AM (8 years ago)
Author:
omarkasem
Message:

update to new instagram api

Location:
ultimate-instagram-feed/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ultimate-instagram-feed/trunk/includes/class-ultimate-instagram-feed.php

    r1675923 r1860326  
    7070
    7171        $this->plugin_name = 'ultimate-instagram-feed';
    72         $this->version = '1.0.0';
     72        $this->version = '1.3.4';
    7373
    7474        $this->load_dependencies();
  • ultimate-instagram-feed/trunk/public/class-ultimate-instagram-feed-public.php

    r1758562 r1860326  
    116116
    117117    private function get_insts_by_user($username,$number){
    118         $username = 'https://www.instagram.com/'.$username.'/?__a=1';
     118
     119        $username = 'https://api.instagram.com/v1/users/self/?access_token='.$this->access_token.'';
    119120        $username = file_get_contents($username);
    120121        $username = json_decode($username);
    121         $user_id = $username->user->id;
     122        $user_id = $username->data->id;
    122123        $api_url = 'https://api.instagram.com/v1/users/'.intval($user_id).'/media/recent/?access_token='.$this->access_token.'&count='.$number.'';
    123124        $api_url = file_get_contents($api_url);
     
    184185                        'id'=> $inst->user->id,
    185186                        'full_name'=> $inst->user->full_name,
     187                        'link'=>$inst->link,
    186188                        'profile_picture'=> $inst->user->profile_picture,
    187189                        'username'=> $inst->user->username,
  • ultimate-instagram-feed/trunk/ultimate-instagram-feed.php

    r1768411 r1860326  
    1010 *
    1111 * @link              omark.me
    12  * @since             1.3.3
     12 * @since             1.3.4
    1313 * @package           Ultimate_Instagram_Feed
    1414 *
     
    1717 * Plugin URI:        ultimate-instagram-feed
    1818 * Description:       Ulitmate instagram feed is the best plugin for displaying instagram feeds by username, you can display them with already designed template by shortcode, or you can display them in your ready desgined template with the WP REST API.
    19  * Version:           1.3.3
     19 * Version:           1.3.4
    2020 * Author:            Omar Kasem
    2121 * Author URI:        https://profiles.wordpress.org/omarkasem
Note: See TracChangeset for help on using the changeset viewer.