Title: Flickr api going SSL
Last modified: August 21, 2016

---

# Flickr api going SSL

 *  Resolved [opvelp](https://wordpress.org/support/users/opvelp/)
 * (@opvelp)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/)
 * Hello,
    I received a message from Flickr that Flickr API is going SSL. Apparentely
   I don’t need a new API key for this transition but do need to change the code
   where I call the Flickr API, so that I call it with the HTTPS protocol, instead
   of HTTP. I need to change it to this:
 * [https://api.flickr.com/](https://api.flickr.com/)
 * Where do I do this? On my site I only see a place to enter the API key.
 * Thanks
 * [https://wordpress.org/plugins/responsive-flickr-gallery/](https://wordpress.org/plugins/responsive-flickr-gallery/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/flickr-api-going-ssl/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/flickr-api-going-ssl/page/2/?output_format=md)

 *  [sorabji](https://wordpress.org/support/users/sorabji/)
 * (@sorabji)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897633)
 * Same here. I just installed RFG for the first time, but got the API SSL error
   from Flickr.
 * I replaced 3 occurrences of [http://api.flickr.com](http://api.flickr.com) with
   [https://api.flickr.com](https://api.flickr.com) in this file:
 * > afgFlickr/afgFlickr.php
 * This seemed to clear the SSL error, but now I get another error from Flickr:
 * > There was some problem figuring out your endpoint
 * That error I can’t figure out.
 *  [sorabji](https://wordpress.org/support/users/sorabji/)
 * (@sorabji)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897634)
 * I figured a couple of things out, not quite there yet, though.
 * In the abovementioned file:
 * > afgFlickr/afgFlickr.php
 * At line 208 replace
 * > if ( !preg_match(“|http://(.*?)(/.*)|”, $url, $matches) ) {
 * with
 * > if ( !preg_match(“|https://(.*?)(/.*)|”, $url, $matches) ) {
 * at lines 382 and 384 replace
 * > [http://farm](http://farm)
 * with
 * > [https://farm](https://farm)
 * at line 601 replace
 * > [http://www.flickr.com/services/auth/?api_key=](http://www.flickr.com/services/auth/?api_key=)
 * with
 * > [https://www.flickr.com/services/auth/?api_key=](https://www.flickr.com/services/auth/?api_key=)
 * With these changes I am able to embed Flickr photos from my public profile. Flickr
   still chokes on the Secret key, and I cannot access my private photos on Flickr.
   When I try to grant access to Flickr API Secret I get sent to flickr.com, which
   responds with this message:
 * > Oops! Flickr can’t find a valid callback URL.
 * If I figure this one out I’ll post it here.
 *  [sorabji](https://wordpress.org/support/users/sorabji/)
 * (@sorabji)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897635)
 * OK, courtesy of the 4th posting in [THIS THREAD](http://wordpress.org/support/topic/plugin-awesome-flickr-gallery-oops-flickr-cant-find-a-valid-callback-url?replies=19)
   I did as follows (quoting Ronak Gandhi):
 * > Go to Flickr.com. After you login, go to Your Apps from the You menu on top.
   > You will see your Flickr app. Click this app. Then click Edit Authentication
   > Flow. Here you will find a setting called Callback URL. Set this to your wp-
   > admin/ URL.
 * After I did that I seemed to be on my way until I started seeing this error:
 * > Responsive Flickr Gallery Error – SSL certificate problem, verify that the 
   > CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:
   > certificate verify failed
 * I do not see this error every time I load a page. Maybe this reflects a temporary
   glitch at flickr.com.
 *  [lezzidan](https://wordpress.org/support/users/lezzidan/)
 * (@lezzidan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897699)
 * I’ve solved the problem changing http to https in both responsive-flickr-gallery/
   afgFlickr/afgFlickr.php and responsive-flickr-gallery/index.php
 *  [Bob](https://wordpress.org/support/users/toggerybob/)
 * (@toggerybob)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897700)
 * You know what? I’m done with Flickr and Yahoo. I’m going back to Google.
 * My pics from the previous 2 years are being held hostage due to Yahoo’s top-secret
   security lock down. Really? They are pictures, not government documents…
 *  [cricky101](https://wordpress.org/support/users/cricky101/)
 * (@cricky101)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897701)
 * Lezziadn – did you change http to https in all instances in those files? Or only
   specific places?
 *  [blueprint22](https://wordpress.org/support/users/blueprint22/)
 * (@blueprint22)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897702)
 * Hi, I was wondering if someone could help me with this as it is still a problem
   for the website which I am tying to maintain, I don’t understand what API or 
   SLL mean or what they do but the website and flikr aren’t working together any
   more and I don’t understand what to do? Any help would be brilliant. Thank you
   🙂
 *  [Tamsin Carter](https://wordpress.org/support/users/tamsin-carter/)
 * (@tamsin-carter)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897703)
 * I have changed all instances of [http://www.flickr](http://www.flickr) to [https://www.flickr](https://www.flickr)
   in the plugin files and now the gallery is showing on my website as before. However
   the navigation is not working. Any help much appreciated.
 *  Thread Starter [opvelp](https://wordpress.org/support/users/opvelp/)
 * (@opvelp)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897704)
 * I changed all instances of [http://www.flickr](http://www.flickr) to [https://www.flickr](https://www.flickr)
   in the two files mentioned above (responsive-flickr-gallery/afgFlickr/afgFlickr.
   php and responsive-flickr-gallery/index.php) but this was not sufficient.
 * I then made the additional changes mentioned by Sorabi in his second post (such
   as (if ( !preg_match(“|http://(.*?)(/.*)|”, $url, $matches) ) { …) and that fixed
   the problem.
 * Thanks!!!
 *  [Tamsin Carter](https://wordpress.org/support/users/tamsin-carter/)
 * (@tamsin-carter)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897705)
 * I have now done a search for all http: instances and where they are followed 
   by anything related to flickr – eg farm.????.flickr etc I have changed them to
   https:
 * Now the navigation is working, though it is very very slow.
 * I hope that helps someone.
 * Tamsin
 *  [zenmagnets](https://wordpress.org/support/users/zenmagnets/)
 * (@zenmagnets)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897706)
 * Summary of current workaround:
 * in afgFlickr/afgFlickr.php
 * replace all [http://api.flickr.com](http://api.flickr.com)
    with [https://api.flickr.com](https://api.flickr.com)
 * replace if ( !preg_match(“|http://(.*?)(/.*)|”, $url, $matches) ) {
    with if (!
   preg_match(“|https://(.*?)(/.*)|”, $url, $matches) ) {
 * replace all [http://farm](http://farm)
    with [https://farm](https://farm)
 * replace [http://www.flickr.com/services/auth/?api_key=](http://www.flickr.com/services/auth/?api_key=)
   
   with [https://www.flickr.com/services/auth/?api_key=](https://www.flickr.com/services/auth/?api_key=)
 * Optional:
 * in responsive-flickr-gallery/index.php
 * replace all [http://www.flickr.com/photos](http://www.flickr.com/photos)
    with
   [https://www.flickr.com/photos](https://www.flickr.com/photos)
 *  [Bob](https://wordpress.org/support/users/toggerybob/)
 * (@toggerybob)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897707)
 * Out of curiosity, is neither WordPress nor Flickr working on a permanent fix 
   on this? Seems like a lot of effort by many individuals to come up with solutions
   to this. Seems to me this is a vendor issue.
 *  [arampal](https://wordpress.org/support/users/arampal/)
 * (@arampal)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897708)
 * The summary made by zenmagnets worked for me.
    without changing the responsive-
   flickr-gallery/index.php
 *  [mhbold](https://wordpress.org/support/users/mhbold/)
 * (@mhbold)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897709)
 * If I make these changes in the WordPress plugin editor, it is not possible to
   save them. I get an internal server error.
    Any ideas how to solve that problem?
 *  [mhbold](https://wordpress.org/support/users/mhbold/)
 * (@mhbold)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/#post-4897710)
 * Sorry, got it! I had to change these files in Plesk. Had something to do with
   rights. Everything is working fine now!

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/flickr-api-going-ssl/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/flickr-api-going-ssl/page/2/?output_format=md)

The topic ‘Flickr api going SSL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/responsive-flickr-gallery_cecece.
   svg)
 * [Responsive Flickr Gallery](https://wordpress.org/plugins/responsive-flickr-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-flickr-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-flickr-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-flickr-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-flickr-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-flickr-gallery/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 19 replies
 * 13 participants
 * Last reply from: [figjamuk](https://wordpress.org/support/users/figjamuk/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/flickr-api-going-ssl/page/2/#post-4897714)
 * Status: resolved