Core for all social media related functionality for Spree. The Spree Social gem handles authorization, account creation and association through social media sources such as Twitter and Facebook. This gem is beta at best and should be treated as such. Features and code base will change rapidly as this is under active development. Use with caution.
- Add this extension to your Gemfile with this line:
gem 'spree_social', github: 'OmSolution/spree_social'
- Install the gem using Bundler:
bundle install
- Copy & run migrations
bundle exec rails g spree_social:install
- Restart your server
If your server was running, restart it so that it can find the assets properly.
Preference(optional): By default url will be /users/auth/:provider
. If you wish to modify the url to: /member/auth/:provider
, /profile/auth/:provider
, or /auth/:provider
then you can do this accordingly in your config/initializers/spree.rb file as described below:
Spree::SocialConfig[:path_prefix] = 'member' # for /member/auth/:provider
Spree::SocialConfig[:path_prefix] = 'profile' # for /profile/auth/:provider
Spree::SocialConfig[:path_prefix] = '' # for /auth/:provider