php - Get results from Instagram API to use in Wordpress -
i have been reading on basic authentication on instagram client(app). gather on reading curl best option threads saying. found instagram php api wrapper on gihub dont think need go route need. what trying this: a function checks current users meta 'instagram_user' (instagram user id) , 'instagram_token' (access token). if usermeta not set, meaning have not authorized client yet, shows link authorization url. click link, authorize app , return our site. need know how retrieve data once return can use add_user_meta save token , id user_meta tables. //get current user $user_id = get_current_user_id(); $instagram_userid = get_user_meta($user_id, 'instagram_user', true); $access_token = get_user_meta($user_id, 'instagram_token', true); if(!$access_token || !$instagram_userid){ echo '<p style="text-align:center;">you need authorize instagram in order see feed here.</p><p><a class="btn btn-success...