Title: [Plugin: WPBook] My post links are https&#8230; what did I do wrong?
Last modified: August 19, 2016

---

# [Plugin: WPBook] My post links are https… what did I do wrong?

 *  [dariusdunlap](https://wordpress.org/support/users/dariusdunlap/)
 * (@dariusdunlap)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/)
 * When I post on my blog, the posts link correctly to my wall on my Facebook account.
   But the link back to my blog is “https” (so people get warnings about my self-
   signed security certificate.)
 * Is there something I did wrong in setting up WPBook? What can I change to make
   it use non-secure URLs?
 * When I post, I do use the secure interface. Is that somehow related to WPBook
   picking up the secure URL?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753744)
 * What’s the url of your blog?
 * WPBook creates a filtered version of the permalink using the existing WordPress
   permalink – are all your permalinks HTTPS?
 *  Thread Starter [dariusdunlap](https://wordpress.org/support/users/dariusdunlap/)
 * (@dariusdunlap)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753745)
 * [http://dunlaps.net/darius](http://dunlaps.net/darius) is the URL of the blog.
 * The permalinks are not https:// is you start at the regular URL. but they are
   if you start at the secure URL. ([https://dunlaps.net/darius](https://dunlaps.net/darius)–
   you’ll get a warning because of my self-signed security certificates)
 * Thanks!
 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753746)
 * Do you have “promote external permalinks” on?
 * publish_to_facebook.php gets the permalink thusly:
 *     ```
       if($wpbook_promote_external) {
             $my_permalink = get_permalink($post_ID);
           } else {
             $my_permalink = wpbook_always_filter_postlink(get_permalink($post_ID));
           }
       ```
   
 * It may be that indeed this runs in an https environment if you are in https when
   you publish the post?
 * I see that your tried to post one NOT using the https for the admin side – did
   it work?
 *  Thread Starter [dariusdunlap](https://wordpress.org/support/users/dariusdunlap/)
 * (@dariusdunlap)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753747)
 * I’m guessing you’re right, John. My most recent test post, from a non-secure 
   admin interface, came through as regular [http://&#8230](http://&#8230);
 * I’m also going to see what it looks like when I turn off “Use external permalinks
   on Walls”.
 * d.
 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753748)
 * We could also add code to filter out the https – just needs to look at the first
   five characters of the permalink and if they are https replace them with http
 * Not sure if there’s a better way to get the permlink parts?
 *  Thread Starter [dariusdunlap](https://wordpress.org/support/users/dariusdunlap/)
 * (@dariusdunlap)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753749)
 * Interesting bug, John.
 * Turning off “Use external permalinks on Walls” basically fixes the problem. The
   title link now takes people to my “DariusBlog” app page on Facebook, and then
   the link from there to “View Post on Darius”, takes them to the non-secure link.
 * Check it out for yourself:
 * [https://www.facebook.com/dariusdunlap](https://www.facebook.com/dariusdunlap)
 * Is the code for generating the “View Post on Darius” link somehow smarter or 
   different?
 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753750)
 * Not any smarter or different, just called in a different context. Call the get_permalink()
   inside an https session and you get https permalinks – call it in an http session
   and you get http permalinks.
 * We’ll have to add a filter to trap https links in the publish_to_facebook code
 * Should be in next release or maybe the one after – we’ve got a 2.0.10 we’re just
   trying to get tested and out the door – not sure we’ll get in that one
 *  Thread Starter [dariusdunlap](https://wordpress.org/support/users/dariusdunlap/)
 * (@dariusdunlap)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753751)
 * New problem. When posting from marsedit, the link to the facebook app comes through
   at “dariusblogs” instead of “dariusblog”. how weird is that?
 * d.
 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753758)
 * Hmm. So Mars Edit uses the XMLRPC client, yes?
 * I’ve no idea – is this reproducible? Anyone else using MarsEdit?
 *  Thread Starter [dariusdunlap](https://wordpress.org/support/users/dariusdunlap/)
 * (@dariusdunlap)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753759)
 * I tried recreating the entire integration, re-install of WPBook, new facebook
   App, setup everything from scratch, and got the same problem… well, this time
   it was
    “darius-blogs” when it should have been “darius-blog”.
 * I’ve got Marsedit using the XMLRPC interface, yes.
 * Wierd, eh?
 * d.
 *  Plugin Author [John Eckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753763)
 * So your blog itself outside FB lives at `http://dunlaps.net/darius`
 * Your facebook app lives at `http://apps.facebook.com/dariusblog` ?
 * Looking at that app, it doesn’t look to my like WPBook is being triggered – but
   maybe that’s because you’re still testing?
 * And when you write posts using the http interface directly in WordPress, they
   work fine, but when you write posts using Mars Edit, they have the wrong permalinks?
 * Where are you seeing the permalinks with the wrong url – in your wall postings,
   in a tab, or in the application canvas itself?
 *  Thread Starter [dariusdunlap](https://wordpress.org/support/users/dariusdunlap/)
 * (@dariusdunlap)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753768)
 * Yes, the http: vs. https: problem is confirmed. And the addition of a “s” to 
   dariusblog in the facebook app permalink ([http://apps.facebook.com/dariusblogs/PERMALINK](http://apps.facebook.com/dariusblogs/PERMALINK))
   is also confirmed.
 * I turned it all off and removed WPBook after installing everything again from
   scratch and having the same problem. (The second time I put the facebook app 
   at [http://apps.facebook.com/darius-blog](http://apps.facebook.com/darius-blog))
 * If you have any suggestions, I’m happy to help troubleshoot. -)
 * d.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘[Plugin: WPBook] My post links are https… what did I do wrong?’ is closed
to new replies.

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

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 12 replies
 * 2 participants
 * Last reply from: [dariusdunlap](https://wordpress.org/support/users/dariusdunlap/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpbook-my-post-links-are-https-what-did-i-do-wrong/#post-1753768)
 * Status: not resolved