WordPress.org

Ready to get started?Download WordPress

Forums

Social
[resolved] [Social] How to use Social on localhost? (5 posts)

  1. Riddergraniet
    Member
    Posted 1 year ago #

    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/

  2. Alex King
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Jared Cornwall
    Member
    Posted 1 year ago #

    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

  4. Riddergraniet
    Member
    Posted 1 year ago #

    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.

  5. Orchid Maze
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic