instagram-api

IOS. Sharing image to Instagram without using a menu display

给你一囗甜甜゛ 提交于 2019-12-11 04:44:43
问题 Can anyone help and explain how to do sharing to Instagram without displaying the menu? For example, the application Prisma does it without using a menu display. 回答1: You must do this: Save your photo to photo library Take asset url of saved photo Open Instagram through URL Scheme with this URL instagram://library?AssetPath=ASSET_PATH Where ASSET_PATH is asset url taken on the second step. Code example on Swift 3 : let library = ALAssetsLibrary() library.writeImage(toSavedPhotosAlbum: image

'Redirect URI does not match registered redirect URI' using Python Social Auth

折月煮酒 提交于 2019-12-11 03:57:03
问题 I am using python-social-auth for authentication with social networks. I have installed and configured everything. In the last step, I added these two action links: <a href="{% url 'social:begin' 'facebook' %}">Login with Facebook</a> <a href="{% url 'social:begin' 'instagram' %}">Login with Instagram</a> Facebook login is working fine but instagram is giving me the following error: {"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect

PHP Instagram-API: Caption text does not exist

萝らか妹 提交于 2019-12-11 03:53:55
问题 I use Instagram-API for the posting images with captions. I try: $ig->timeline->uploadPhoto($photo->getFile(), ["caption" => "Hello world!"]); The request is completed, the image is successfully uploaded, but the caption is empty. When I run the example uploadPhoto.php, the image is also loaded without a title. How can I fix that? 回答1: $photoFilename = Enter Path here; $photo = new \InstagramAPI\Media\Photo\InstagramPhoto($photoFilename); $captionText = 'Hello world!'; $ig->timeline-

How to get images using Instagram API

末鹿安然 提交于 2019-12-11 02:11:31
问题 How to get users images from Instagram API? access_token=4049241557.1677ed0.5324ad17d9314645b528ad112da8d56e But no success, it's giving me only user info. How can I get images using Instagram API? 回答1: Use this API: https://api.instagram.com/v1/users/self/media/recent?access_token={access-token} This will get your photos,(but it looks like from the access_token you have posted, that user does not have any photos posted, so it will return empty array) Use this to get other user's photo: https

Posting Multiple Images to Instagram using Intents

落爺英雄遲暮 提交于 2019-12-10 23:30:33
问题 Instagram allows a single image or video to be uploaded programmatically from an Android app via Android Intents. I have been able to do this successfully. What I want to know is it possible for Instagram to handle multiple images using Intents? Not much to no information on this unfortunately. The following is my last attempt which opens Instagram briefly then closes with a toast message saying "Unable to load image". Have tried both Intent.ACTION_SEND and Intent.ACTION_SEND_MULTIPLE val

Instagram relationship (POST) api is not working in iOS app

安稳与你 提交于 2019-12-10 21:44:21
问题 I'm developing an iOS iPhone app using Instagram API, in which user allow to follow another user account using Instagram Relationship API and I'm always getting an error for this API request: API request: https://api.instagram.com/v1/users/157xxxx469/relationship?access_token=169527xxxx.f71bc56.fb2a414a0ee7469ca381a3659f5cxxxx Response Received: { "meta": { "error_type": "OAuthPermissionsException", "code": 400, "error_message": "This request requires scope=relationships, but this access

Instagram result codes

你说的曾经没有我的故事 提交于 2019-12-10 21:41:35
问题 Instagram allows you to share photos to the app via intent. Now you can define your own request code startActivityForResult(intent, YOUR_CODE_HERE) Now the problem arises when you retrieve the result codes from Instagram it only gives back 0 which is RESULT_CANCELED . Plus the moment you start firing your intent this result code is called regardless whether you closed Instagram or not. Is this the only available result code? RESULT_OK does not get called even if you post your image because

Instagram API - Retrieve Only Videos

倖福魔咒の 提交于 2019-12-10 21:32:11
问题 I need to retrieve ONLY videos tagged with a certain hashtag. I understand there isn't any way to retrieve only videos, but how could I parse through the JSON object I get back and only use the videos? I've been examining the array and I don't see any field that I could reliably use to determine if the result was a video or photo (ie, something like: ['type'] => 'image' would be really helpful, if it existed). To be fair, this is a huge array, and I could be missing something obvious. So: is

How to avoid instagram error 429 The maximum number of requests per hour has been exceeded

自古美人都是妖i 提交于 2019-12-10 20:14:45
问题 I do an application which deletes comments on Instagram since Saturday 31st of October, I get this response when I use API to delete comments: {"error_type":"OAuthRateLimitException","code":429,"error_message":"The maximum number of requests per hour has been exceeded...."}}. I see that they did a modification one year ago for the limits of the number of requests, but I don't have this error during this execution since before the update. How to avoid it? Is it necessary to retrieve a new

Generate access token Instagram API, without having to log in?

我们两清 提交于 2019-12-10 19:23:49
问题 So I am building a restaurant app and one of the features I want is to allow a user of the app to see photos from a particular restaurant's Instagram account. And I want a user to be able to see this without having to login to their Instagram account, so they shouldn't even need an Instagram account for this to work. So I have read this answer How can I get a user's media from Instagram without authenticating as a user? And I tried what it said and used the client_id(which I recieved when I