Fieldtype, Module

Archived
Forum
(read-only)

Pic Puller for Instagram

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From John Morton

     

https

Support Request

Spectle
Spectle

Is it possible to serve instagram over HTTPS to avoid elements of the page causing the site to display non-secure elements?

John F Morton
# 1
Developer
John F Morton

I had a similar issue a while back on my blog, http://supergeekery.com. Check out the Instagram image I have at the end of the right hand column. If you look at the source, you’ll see it’s being served by https not http.

The reason it’s this way is that I was experimenting with serving all my content over HTTPS like you’re trying to but my Instagram images were coming back form Instagram with http instead of https. It was the only non-secure content and was causing me grief. Luckily, Instagram does have an SSL certificate but the URLs they provide via the API don’t use it.

My solution was to use Low Replace. http://gotolow.com/addons/low-replace

Here’s the template code I’m using on SuperGeekery to display my Instagram photos via HTTPS.

<h4>Meanwhile on Instagram… //</h4>
{exp:ig_picpuller:media_recent user_id='1' limit='1' use_stale_cache='yes'}
 
<img src="{exp:low_replace find=" replace="https:" alt="My latest shot from Instagram." width="216" height="216" />
 <
div class="igcaption">{caption}</div>
{/exp:ig_picpuller:media_recent} 

Does that help solve you problem? Let me know. Thanks!