Skip to content
Example application to connect to one of the social networks
JavaScript Ruby CSS
Find file
Latest commit a546c7a Apr 6, 2014 @maxdemarzi Merge pull request #1 from ausmarton/master
Fixed incorrect property key for the image_url in a User node
Failed to load latest commit information.
helpers
lib
public
views adding message to home page Aug 21, 2012
.gitignore initial commit Aug 16, 2012
Gemfile
Gemfile.lock
LICENSE.txt
Procfile initial commit Aug 16, 2012
README.md
Rakefile
cacert.pem
config.ru move path includes to config.ru Aug 16, 2012
neosocial_app.rb

README.md

NeoSocial

Example application to connect Neo4j to Facebook using the Neography Gem.

Pre-Requisites

  • You will need to get a Facebook Consumer Key and Secret on https://developers.facebook.com/apps
  • Select the "user_likes", "user_location", "friend_likes", "friend_location" permissions.
  • You will need Neo4j in order for your database.
  • You will need Redis in order to use Sidekiq for background jobs.

Installation

git clone git@github.com:maxdemarzi/neosocial.git
bundle install
sudo apt-get install redis-server or brew install redis
rake neo4j:install['enterprise','1.8.M07']
rake neo4j:start
export SESSION_SECRET=<your session secret>
export FACEBOOK_APP_ID=<your facebook app id>
export FACEBOOK_SECRET=<your facebook secret>
export REDISTOGO_URL="redis://127.0.0.1:6379/"
foreman start

On Heroku

git clone git@github.com:maxdemarzi/neosocial.git
heroku apps:create neosocial
heroku config:add SESSION_SECRET=<your session secret>
heroku config:add FACEBOOK_APP_ID=<your facebook app id>
heroku config:add FACEBOOK_SECRET=<your facebook secret>
heroku addons:add neo4j
heroku addons:add redistogo
git push heroku master
heroku ps:scale worker=1

See it running live at http://neosocial.heroku.com

Something went wrong with that request. Please try again.