instagram

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

How can I embed an Instagram Video or Picture using SSL?

风格不统一 提交于 2019-12-07 23:29:28
问题 I need to embed Instagram Video or Photo using the SSL protocol, so I can show it in a facebook app. If I insert an iframe with the following URL https://instagram.com/p/hvisAyBQZ0/embed/ it will load all resources in http, but not https. UPDATE: This is the HTTPS Response, it's a 302 response. Connection: keep-alive Content-Length: 154 Content-Type: text/html Date: Tue, 10 Dec 2013 15:58:20 GMT Location: http://instagram.com/p/hvisAyBQZ0/embed/ Server: nginx 回答1: According to this old Google

How to create and add video filter like Instagram using AVFoundation framework - Swift programming

南笙酒味 提交于 2019-12-07 20:18:42
问题 Im working on AVFoundation framework using Swift programming. Can someone help me find some tutorial or links or code snippet to apply video filter similar to what Instagram does. I'm working on iOS video creator kind of app which records video and later i can apply filter to video. Thanks in advance. 回答1: You should check out Apple's sample project RosyWriter. Its a good example for what you want to achieve. https://developer.apple.com/library/prerelease/ios/samplecode/RosyWriter

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

Pulling Instagram images to my app [closed]

一个人想着一个人 提交于 2019-12-07 07:25:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm developing and iOS app for iPad where you can personalize Tea Cups importing photos from the roll. I'd love to add Instagram, so the user could add his Instagram's photos. Is there any SDK or Plugin for that? 回答1: Instagram has an API. You can get user photos using this API with simple HTTP requests. Check

Request the access_token Instagram

為{幸葍}努か 提交于 2019-12-07 06:59:52
问题 I got the following problem: I am trying to implement Instagram into my website. However I am stuck on the step where I need to get the Acces token. The api's documentation says I need to request it like this : curl \-F 'client_id=CLIENT-ID' \ -F 'client_secret=CLIENT-SECRET' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=YOUR-REDIRECT-URI' \ -F 'code=CODE' \https://api.instagram.com/oauth/access_token I use ASP.NET so I found this equivalent OAuth 2.0 In .NET With Instagram API:

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

Instagram API - Getting feed of private user whom the authorised user follows

北城以北 提交于 2019-12-07 02:10:43
问题 I am using Instagram API for my application. I need access to the feed of private users whom I am following, but the response is: code: 400 error_type: APINotAllowedError error_message: you cannot view this resource I could not find anything in the documentation regarding this. I was hoping that as I am able to see the user's feed on my app, I would be able to retrieve the same using the API. Any way around this? Please help. 回答1: [ As instagram changes their api, this tips may not work

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

Swift / Instagram API - how to auth with Instagram App

三世轮回 提交于 2019-12-06 20:07:33
问题 I need an AccessToken to have the User have granted access to his own Instagram Account within my App. I've registered everything within the Instagram Development Center. Currently I'm using SimpleAuth to receive an AccessToken by Instagram. So far everything is working well. I'm receiving the Token and am able to use it. But when I wanted to login for the first time, I've noticed, that I had no idea what my password was. I always log in with Facebook or am already logged in. I don't want to