spree-contrib / spree_social

Building block for spree social networking features (provides authentication and account linkage)
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
213 stars 283 forks source link

Redirecting to Railsdogradio #50

Closed JoonasLin closed 12 years ago

JoonasLin commented 12 years ago

This must be a stupid question, but..

1) I'm running my Spree app in development mode on my computer 2) I have configured my Spree app in Twitter and Facebook 3) I have configured my Spree app in http://localhost:3000/admin/authentication_methods to support Twitter and Facebook authentication

Now when I try to sign up with Twitter or Facebook in my app, why does it ask if the Railsdogradio demo app http://demo.spreecommerce.com can use my account and redirects to that site? I'm trying to get it to ask if my Spree app can use my account and redirect to my Spree app instead. Have I configured something wrong?

Maxoos commented 12 years ago

You need to make sure you set the site URL at config. The default is demo.spree...

JoonasLin commented 12 years ago

In the config of https://dev.twitter.com/ and http://developers.facebook.com/ ? I've set them there so then it seems I'm setting them in the wrong format or something. Can you give me exact example what to write to the site url / callback url when i usually just run on http://localhost:3000? I've tried different combinations, for example http://localhost.local:3000 as I'm interprating from the spree_social wiki setup examples.

LBRapid commented 12 years ago

@JoonasLin You need to set Spree::Config.site_url in your Spree application.

JoonasLin commented 12 years ago

@LBRapid @Maxoos Thanks, that solved the problem.