instagram-api

Instagram does not redirects after sign in

本秂侑毒 提交于 2019-12-08 05:17:28
问题 I have an issue while authenticating Instagram via my application.If the user has not signed in while doing authentication it directs me to Instagram login page after logged in it does not redirect to app even i have given RedirectUrl in my app and it loads Instagram page .Moreover if the user user has already logged in and doing authentication means it redirects to my app and works fine.I have tested this case before and it was working fine but now it is not working.Can anyone help me to

Get follower List with userID Instagram

眉间皱痕 提交于 2019-12-08 04:23:48
问题 How can I get Following/Followers List with UserID rather than "self" using Instagram API, the service for getting list of follows for current instagram user logged in and it works https://api.instagram.com/v1/users/self/follows?access_token=ACCESS-TOKEN I try to modify self with an ID of Instagram User https://api.instagram.com/v1/users/6675420875/follows?access_token=XXXX but without success,the response is: { "meta": { "code": 400, "error_type": "APINotAllowedError", "error_message": "you

Get likes from instagram ad post via API

邮差的信 提交于 2019-12-08 03:28:00
问题 I have deal with problem. I want to load likes from ad posts with API. For this I use 2 methods: https://api.instagram.com/v1/media/shortcode/D?access_token=ACCESS-TOKEN with this method I get media-id of record https://api.instagram.com/v1/media/{media-id}/likes?access_token=ACCESS-TOKEN with this method I’m trying to get likes, but receive error, that media-id is incorrect. How to get likes from ad posts? 回答1: Well if it's saying your media id is not correct then its right. https://api

Error retrieving jsonp from aurelia http client

喜夏-厌秋 提交于 2019-12-08 02:16:53
问题 I have an application I am creating using Aurelia. I wish to retrieve the latest images from a user in instagram via ajax. I tried using the Aurelia http client because that's what the Flickr example on Aurelia's getting started page uses. If I use http.get , then I get a CORS error from instagram. Trying http.jsonp , the inspected response shows the correct format, but I get what looks like a parsing error (Unexpected token ":") before the callback that handles the response is being executed

How to convert created_time filed value to date from Instagram media object

北城余情 提交于 2019-12-08 01:01:34
问题 I am wokring with instagram api. My requirement is how to convert or parse date from media object respose like "created_time": "1279340983"? any idea? 回答1: Once you have the response from the Instagram API, do this: var t = response.created_time; var date = new Date(t); console.log(date); If the time stamp is 1279340983, then: var date = new Date(1279340983); will convert the stamp to a date/time in your computer's local time zone. 回答2: The Instagram API responds with a "created_time" JSON

Will Instagram serve square thumbnails for portrait/landscape images?

前提是你 提交于 2019-12-07 14:49:48
问题 We have a custom Instagram integration in our site, the design for which assumes (and currently depends upon) the images it displays being square. Instagram announced today that they will support landscape and portrait photos. Is there a way to load only square images/thumbnails even if the Instagram image is portrait/landscape? 回答1: There is a hack for getting square images that I am using: You take the thumbnail url which includes the correct cropping command and then replace the 150x150

Instagram API: Can i check if user is verified?

▼魔方 西西 提交于 2019-12-07 07:41:50
问题 I would like to know if there is any way to check if the user verification badge with the Instagram API? I have saw that https://api.instagram.com/v1/users/{user-id} doesn't returns if the user is verified, but if you view the source code of a users page, you can see that it has a boolean that called isVerified key and it's value inside a json struct of the user. Thanks! 回答1: Ok, this is not a great answer but here is how I accomplished this same task. Once I have a username from the API I do

oAuth Instagram login

自古美人都是妖i 提交于 2019-12-07 06:56:33
问题 I am trying to get access token from Instagram using oAuth 2, to use it in scopes. I couldn't understand how should I configure "redirect_uri" (tried a lot of combinations) if I use it in native app, it means I don't need any websites to have redirected, I need redirect to app itself, after logged in. (Maybe I explained something not correctly, because don't understand how redirect_uri works in native apps) In AppDelegate.swift added: func application(app: UIApplication, openURL url: NSURL,

Get follower List with userID Instagram

◇◆丶佛笑我妖孽 提交于 2019-12-07 04:01:24
How can I get Following/Followers List with UserID rather than "self" using Instagram API, the service for getting list of follows for current instagram user logged in and it works https://api.instagram.com/v1/users/self/follows?access_token=ACCESS-TOKEN I try to modify self with an ID of Instagram User https://api.instagram.com/v1/users/6675420875/follows?access_token=XXXX but without success,the response is: { "meta": { "code": 400, "error_type": "APINotAllowedError", "error_message": "you cannot view this resource" } } this user "6675420875" already invited and added in sandbox mode. I know

Adding scopes to instagram app?

[亡魂溺海] 提交于 2019-12-07 02:01:13
问题 I am trying to give my app the ability to use other scopes besides the basic permissions, but when I try it with other scopes I get the following error: Something went wrong :(stdClass Object ( [meta] => stdClass Object ( [error_type] => OAuthPermissionsException [code] => 400 [error_message] => This request requires scope=likes, but this access token is not authorized with this scope. The user must re-authorize your application with scope=likes to be granted write permissions. ) ) The