Missing slash in links on the Canvas Page (7 posts)

  1. O Ofutur
    Posted 4 years ago #

    When looking at the Canvas Page, I see a list of posts.
    Each title has a link.
    Each link is broken because there is a missing space between the Canvas page URL and the permalinks structure that goes after that.

    Here is an example:

    On the plugin's page, The Facebook Canvas Page URL doesn't have a final slash because the documentation shows that it shouldn't be there.

    So is this a case of updating the documentation or is there a slash missing in the code somewhere?

  2. John Eckman
    Plugin Author

    Posted 4 years ago #

    When you set your site url in Facebook (canvas URL) did you include a final trailing slash there?

  3. O Ofutur
    Posted 4 years ago #

    Yes, the Canvas URL has a final slash (just like the tiny screenshot shows if I'm not mistaken)

  4. John Eckman
    Plugin Author

    Posted 4 years ago #

    @bandonrandon Are we not linking the smaller screenshots to their larger versions anymore?

    For fullsize, just eliminate the -300x232 from the end of the filename:

    Maybe you have a final slash in the WordPress->Settings->General->WordPress Address / Site Url? I don't put one there, which makes my "base" one character shorter.

    Somehow the calculation that makes the permalinks (takes the full permalink, subtracts the core root from the WordPress URL, and concatenates to the canvas url) is failing - but it works fine in all my setups.

    You can see these functions in wpbook.php: fb_filter_permalink and fb_always_filter_permalink I believe.

  5. O Ofutur
    Posted 4 years ago #

    The blog is in a network and the "Domain" doesn't have a final slash.
    The path is "/", but I think this has to stay.

    The blog's links are fine and it seems other plugins are getting the correct URL when processing a link, so I'm not really sure where to look.

    wpbook.php doesn't have those functions.

    And regarding the screenshots, some are not linked to the bigger version anymore ;).

  6. O Ofutur
    Posted 4 years ago #

    I just wanted to add that the links posted on the walls are fine, it's just the ones on the Canvas Page, which is odd since the config page on Facebook explicitly shows a trailing slash after our custom app name.

  7. BandonRandon
    Plugin Contributor

    Posted 4 years ago #

    @johneckman, I must have missed a few links to the larger thumbnails. I have updated the site to fix the issue. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPBook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic