WordPress.org

Forums

Simple Facebook Connect
[resolved] How to change SFC Publish from using WordPress post ID to relative (6 posts)

  1. stillingen
    Member
    Posted 2 years ago #

    Hi.

    SFC Publish uses Standard permalink ´http://www.example.com/?p=123´, rather than the Postname rewritten URL / absolute SEO URL ´http://www.example.com/example-post/´. SFC Like on the other hand uses the Postname rewritten URL / absolute SEO URL. Using the Facebook iPad app or the iPhone Facebook app, these do not interpret the Standard permalink, directing the user to the main WordPress site, rather than the post that you wanted to publish/share. Where in the code should I look in order to change the behaviour of SFC Publish, to be the same as SFC Like with regards to URL shared/published?

    http://www.surface.no/wp-content/uploads/2012/06/simplefacebookconnect.jpg

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 2 years ago #

    SFC actually uses whatever the "shortlink" is. If you have the default setup, then the shortlinks are indeed the ?p=123 URLs, which get redirected to the normal ones.

    However, if you use something like Jetpack to get the shortened wp.me URLs, then it will use those instead.

    The reason SFC uses the shortlinks is because some people use shortlinks for tracking. I use the YOURLS code on my sites to create my own shortlinks, and then when people visit my shortlinks from Facebook, I get tracking information on them. Same goes for people that use custom bit.ly shortlinks.

    The Facebook app for iPhones and iPads has no problems with these shortlinks that I can find. If you're getting directed to the homepage, then you have some other code that is incorrectly interfering with the links for those devices. Perhaps a mobile plugin or something is causing the problem. Try disabling that mobile plugin or theme.

  3. kkoenen
    Member
    Posted 2 years ago #

    I guess this would be the bool $leavename = true option in get_permalink ? for instance in simple-facebook-connect/sfc-like.php. Is this also the fix for the july migration of FaceBook?

    Will you be publishing a new version of your Plugin to comply to FB changes?

    Thanks

  4. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 2 years ago #

    kkoenen: SFC is already compatible, and nothing needs to be changed in it for FB's july migration.

  5. SnakeEater
    Member
    Posted 2 years ago #

    Dear Otto, it seems like something needs to be fixed. My Like buttons desappeared since FB gave me this message on the page of my app:

    "XXX is currently using the following deprecated features:

    Social Plugins (Like Button, Like Box) without absolute URL's in their href parameter."

    Hw can I solve this problem? I found this, but I'm not sure it's helping: http://brandoncoppernoll.com/how-to-fix-the-href-url-must-be-absolute-facebook-like-button-error/

  6. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 2 years ago #

    SnakeEater: SFC's like buttons do have an absolute URL in their href parameter and are working just fine, regardless of this incorrect message from Facebook.

    The Like Box widget may be broken in the future however.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic