WordPress.org

Support

Support » Plugins and Hacks » Social » [Resolved] [Social] How to use Social on localhost?

[Resolved] [Social] How to use Social on localhost?

  • I’m developing a website and am filling it with content and testing it locally. How can I use the Social plugin on my localhost? If I try to connect the twitter accounts to the system I get a

    error!
    
    POST to http://address-on-localhost/index.php?social_controller=auth&social_action=authorized&salt=...&is_admin=true&user_id=... failed: Couldn't resolve host 'address-on-localhost'

    type of error. I know why I get this error, because my localhost address is not accessible for Twitter to post to, but how can I use the plugin locally anyway? Is there a sandbox mode or something so that I can at least style the tweets that need to be displayed on the website?

    http://wordpress.org/extend/plugins/social/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Alex King

    @alexkingorg

    Your server has to be accessible to the internet at large to receive the authentication callback. You can stage data elsewhere then import it back to your local environment.

    I have started to create working HTML that you can cut and paste into your theme for development. You can grab the example markup at the following Gist: https://gist.github.com/2848560

    Oh thank you jaredkc1 🙂

    In the end I solved it kind of like Alex suggested: just get up a stage blog on a server somewhere and then style the tweets over there or see how it is made up and displayed.

    What worked for me is verifying the API settings on my live site which is open to the public and then importing the live database back onto my localhost environment. I sync my db from live to local dev very often anyway so a pretty quick process.

    Thanks Alex.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Social] How to use Social on localhost?’ is closed to new replies.
Skip to toolbar