instagram-api

Instagram API error 500 UTF-8 hashtags with enforced signature

試著忘記壹切 提交于 2019-12-03 11:17:25
问题 I am receiving 500 error from a simple instagram GET request. My code works when the hashtag contains normal ascii characters, or when my app has the checkbox "Enforce signed requests" unchecked. But I cannot get anything to work when I try with a utf8 hashtag and signed requests enforced. I saw that signed requests will be mandatory soon, so I need it to work. I want to get all images for a tag like #über. public static String signRequest(String key, String data) throws Exception { Mac

Possible to pull Insights data via Instagram API?

我的梦境 提交于 2019-12-03 08:41:57
Instagram recently allowed accounts to link to a Facebook Business Page. They also added a new 'Insights' section that gives metrics like: Impressions Reach Top Posts Followers by Age I can't find a way to pull these new numbers in via the API. Is there a separate Analytics API that I need to apply for? Quick update for this question: the Instagram Platform API now offers an endpoint for insights . Endpoint GET graph.facebook.com /{media_id}/insights?metric={engagement|impressions|reach|saved|video_views} Example GET graph.facebook.com /17895695668004550/insights?metric=impressions,reach

Passing caption to Instagram with Android Intent Stopped Working?

◇◆丶佛笑我妖孽 提交于 2019-12-03 07:05:12
I used to send an image to Instagram on Android from my app using this code : shareIntent.setPackage("com.instagram.android"); shareIntent.putExtra(Intent.EXTRA_TEXT, caption); shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(tempFile)); With the latest version of Instagram the caption isn't working anymore. Does anyone know if this is a bug or perhaps another extra is being used. Thanks. MarcSB Looks like this feature has been removed... http://developers.instagram.com/post/125972775561/removing-pre-filled-captions-from-mobile-sharing Here is a good way to help your users: 来源: https:/

Is there still a way to fetch instagram feed without using access token now (06/2016)?

独自空忆成欢 提交于 2019-12-03 05:11:41
问题 I have an issue that my Instagram API access token keeps expiring frequently and I red the document and understood that although the token wouldn't expire generally, Instagram may decide to expire a token any time for any security reason or whatever reasons. I know that when it expires, I need to set up an authentication process and request for a new token and all those of things. But the problem is that my app is just retrieving my own feeds to show on my own website, once the token expires

Instagram/feed API media URL shows 'URL signature expired'

不羁岁月 提交于 2019-12-03 04:36:28
I am using Instagram feed API to show my Instagram posts on my Website. But some video URL shows ' URL signature expired '. Any solution for me ? Jordi Instagram has added URL signatures to their media URLs. You can easily remove the URL signature using this regular expression: "vp.*/.{32}/.{8}/" For example in PHP: preg_replace('/vp.*\/.{32}\/.{8}\//', '', $mediaUrl) On the other hand, I don't think that removing the URL signature is the best solution (is just a quick fix). The good one is to call again the Instagram api in order to get the new URL. UPDATE It seems that Instagram is currently

Instagram API error 500 UTF-8 hashtags with enforced signature

安稳与你 提交于 2019-12-03 00:47:03
I am receiving 500 error from a simple instagram GET request. My code works when the hashtag contains normal ascii characters, or when my app has the checkbox "Enforce signed requests" unchecked. But I cannot get anything to work when I try with a utf8 hashtag and signed requests enforced. I saw that signed requests will be mandatory soon, so I need it to work. I want to get all images for a tag like #über. public static String signRequest(String key, String data) throws Exception { Mac sha256_HMAC = Mac.getInstance("HmacSHA256"); SecretKeySpec secret_key = new SecretKeySpec(key.getBytes("UTF

Where do I find the Instagram media ID of a image

梦想与她 提交于 2019-12-03 00:24:09
问题 I'm am looking for the MediaID of an Instagram image which has been uploaded. It should look like 1234567894561231236_33215652 I have found out the last set of integers are the usersID For example: this is the link for the image directly, however I see no mediaID in the correct format? http://distilleryimage11.ak.instagram.com/d33aafc8b55d11e2a66b22000a9f09de_7.jpg while this is the link http://instagram.com/p/Y7GF-5vftL/ I don't wish to use the API as all I need the MediaID from a selected

Is there still a way to fetch instagram feed without using access token now (06/2016)?

社会主义新天地 提交于 2019-12-02 19:33:16
I have an issue that my Instagram API access token keeps expiring frequently and I red the document and understood that although the token wouldn't expire generally, Instagram may decide to expire a token any time for any security reason or whatever reasons. I know that when it expires, I need to set up an authentication process and request for a new token and all those of things. But the problem is that my app is just retrieving my own feeds to show on my own website, once the token expires it doesn't make sense to set up such a process, the only thing I can do is to manually retrieve and

How to get other pages followers count number in Instagram?

社会主义新天地 提交于 2019-12-02 18:31:01
is there possibility to get other pages follower count number in Instagram? I can get only my profile followers count number, but I want to get other followers too? (for example in php) Any ideas? rNix Yes, it's possible with ?__a=1 queries which return json. $otherPage = 'nasa'; $response = file_get_contents("https://www.instagram.com/$otherPage/?__a=1"); if ($response !== false) { $data = json_decode($response, true); if ($data !== null) { $follows = $data['graphql']['user']['edge_follow']['count']; $followedBy = $data['graphql']['user']['edge_followed_by']['count']; echo $follows . ' and '

fetching images from a public Instagram hashtag

跟風遠走 提交于 2019-12-02 18:27:58
问题 I am developing a website for a couple that are getting married and they created #somehashtag where other people can post images to. I want to fetch all images from that hashtag and post it on the site. Nothing works. Ideally I want to use php, but javascript/jquery would do. What have you tried? The answer is probably everything InstafeedJS doesn't work, nothing shows Old php scripts, even from 2015 posted on SO or elsewhere does not work, nothing works. Php libraries are old and unsopported