Forums

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

  1. Riddergraniet
    Member
    Posted 11 months 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 11 months 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 11 months 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 11 months 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 month 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.

Reply

You must log in to post.

About this Plugin

About this Topic