Title: Flickr API error: SSL is required ?
Last modified: August 21, 2016

---

# Flickr API error: SSL is required ?

 *  Resolved [fixalover](https://wordpress.org/support/users/fixalover/)
 * (@fixalover)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/)
 * Hi,
 * today my photstream and sets not working. I have changed nothing on my end…
 * Yesterday my web going right
 * All it says is: Flickr API error: SSL is required
 * Do I need to do something to make this work again?
 * thanks
 * [https://wordpress.org/plugins/flickr-photostream/](https://wordpress.org/plugins/flickr-photostream/)

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

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

 *  [HiveFIlms](https://wordpress.org/support/users/hivefilms/)
 * (@hivefilms)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888512)
 * Me too. Same message appeared on my photostream and Slickr Flickr without anything
   changing my end.
 *  [stefanozanardipv](https://wordpress.org/support/users/stefanozanardipv/)
 * (@stefanozanardipv)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888521)
 * My site have the same problem.
 * In plugin settings it say: API Key not valid.
 * I’ve just requested another but it not works.
 *  [Firsh](https://wordpress.org/support/users/firsh/)
 * (@firsh)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888523)
 * It’s because communation is sent to the http API address instead of https. Change
   all [http://api.flickr.com/](http://api.flickr.com/) adresses in the plugin to
   [https://api.flickr.com/](https://api.flickr.com/) – I believe Flickr recently
   closed the http API.
 * \flickr-photostream\phpFlickr\phpFlickr.php
 * lines 29-31
 *  [stefanozanardipv](https://wordpress.org/support/users/stefanozanardipv/)
 * (@stefanozanardipv)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888533)
 * I’ve just modified that file.
 * Output in page where plugin is used is:
 * There was some problem figuring out your endpoint
 * – See more at: [http://www.stefanozanardi.it/wp/gallery/events/test-album-flickr-privato/#sthash.XkAsz4r4.dpuf](http://www.stefanozanardi.it/wp/gallery/events/test-album-flickr-privato/#sthash.XkAsz4r4.dpuf)
 * Thanks
 *  [tsukasaxen](https://wordpress.org/support/users/tsukasaxen/)
 * (@tsukasaxen)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888617)
 * Yes Firsh is right but you also need to change **line 211 http:// to https://**
   and that should work. 🙂
 *  Thread Starter [fixalover](https://wordpress.org/support/users/fixalover/)
 * (@fixalover)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888637)
 * Hi everyone,
 * I still get the problem.. i already change line 29-31 & line 211..
 * please help… thanks
 *  [stefanozanardipv](https://wordpress.org/support/users/stefanozanardipv/)
 * (@stefanozanardipv)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888638)
 * I confirm that changing line 29-31 & line 211 IT WORKS!!!
 * Thanks to everybody for support!
 * Stefano
 *  [Firsh](https://wordpress.org/support/users/firsh/)
 * (@firsh)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888640)
 * Oh ok I didn’t catch that. Flickr sent me a mail, this might be of use to someone(
   the reason behind all this):
 * >  As you may have read on the Flickr code blog, we’ve updated all of the API
   > endpoints to fully support SSL. You no longer need to use a special subdomain
   > to access the API securely, and we want to make sure that all API communication
   > adopts SSL.
   > Many of you have moved over to using SSL already, which is great! If you haven’t,
   > it shouldn’t be much more work than updating your apps to call the API at: 
   > [https://api.flickr.com/](https://api.flickr.com/)
   > We’ll be updating the blog with information as we get close to the switchover
   > date, but here’s the most important info:
   > New API keys will be issued for HTTPS access only: as of 6 May 2014
   >  First 
   > blackout test window: 3 June 2014, 10:00-12:00 Pacific Daylight Time (PDT) 
   > Second blackout test window: 17 June 2014, 18:00-20:00 (PDT) Non-SSL API deprecated:
   > 27 June 2014, 10:00 (PDT)
   > During the blackout tests and after the 27th of June, calls to the Flickr API
   > that are not over SSL will fail with an HTTP error code 403. We will also return
   > an error message with (Flickr) code 95 and msg “SSL is required”.
 *  [marimo77](https://wordpress.org/support/users/marimo77/)
 * (@marimo77)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888709)
 * Hello
 * I also still get the problem. I already change line 29-31 & line 211..
 * I change line 29-31 too
 *     ```
       var $rest_endpoint = 'https://api.flickr.com/services/rest/';
       var $upload_endpoint = 'https://api.flickr.com/services/upload/';
       var $replace_endpoint = 'https://api.flickr.com/services/replace/';
       ```
   
 * and line 211
 * `if ( !preg_match("|https://(.*?)(/.*)|", $url, $matches) ) {`
 * please help… thanks
 *  [PieterBash](https://wordpress.org/support/users/pieterbash/)
 * (@pieterbash)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888714)
 * I also tried to change the lines, but it didn’t help. I found out that if i use
   the Api Key that you get here: [https://www.flickr.com/services/api/explore/flickr.test.echo](https://www.flickr.com/services/api/explore/flickr.test.echo)
   then the plugin works. But that api key changes and then it doesn’t work anymore.
   I don’t know what this key is and why it works while the keys I generated don’t.
   Regretfully I lack the skill to figure out what is wrong.
 *  [usdy](https://wordpress.org/support/users/usdy/)
 * (@usdy)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888715)
 * Same problem, plugin responses “API key is not valid”. Modifying the lines mentioned
   above doesn’t help. Any other idea? I’ve came across some other http calls. How
   about modifying one of those?
 *  [MMSrentals](https://wordpress.org/support/users/mmsrentals/)
 * (@mmsrentals)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888716)
 * I also haven’t been able to figure this out. I’ve changed lines 29-31 as well
   as 211 in the “flickr-photostream/phpFlickr/phpFlickr.php” file in the plugin(
   the only place I could find any [http://api.flickr](http://api.flickr) instances).
   Now instead of giving me an API error on the page I’m attempting to use the plugin
   on, it says “no photos” despite there being photos in the set.
 * I hadn’t had my API key registered before this became an issue and I think that’s
   been my problem. I keep trying but despite changing the .php file I still can’t
   load my API key (it says “Invalid API” every time I try).
 * Any ideas as to how to get the API key to be recognized?
 *  [stefanozanardipv](https://wordpress.org/support/users/stefanozanardipv/)
 * (@stefanozanardipv)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888718)
 * After changes of lines 29-31 and 211, i’ve requested another key on flickr, and
   then it works.
 *  [marimo77](https://wordpress.org/support/users/marimo77/)
 * (@marimo77)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888719)
 * > After changes of lines 29-31 and 211, i’ve requested another key on flickr,
   > and then it works
 * I just tried it out. Unfortunately it is still not working for me. I hope there
   will be an Update of the Plug-in soon.
 *  [usdy](https://wordpress.org/support/users/usdy/)
 * (@usdy)
 * [12 years ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/#post-4888721)
 * When I modify the settings in lines 29-31 / 211 and hit “Save changes” in the
   plugin settings, the page reload ends up in a timeout. Changes are not being 
   saved. When I reenter the settings dialogue, there’s still the old ID entered.
   So even requesting a new code won’t help here.

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

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

The topic ‘Flickr API error: SSL is required ?’ is closed to new replies.

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

 * 33 replies
 * 13 participants
 * Last reply from: [HiveFIlms](https://wordpress.org/support/users/hivefilms/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/flickr-api-error-ssl-is-required/page/3/#post-4888788)
 * Status: resolved