Skip to content

Storing Facebook friends data into Neo4j with Python and visualizing them using a D3.js graph

License

Notifications You must be signed in to change notification settings

tiepologian/neo4j-facebook-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

neo4j-facebook-example

Storing Facebook friends data into Neo4j with Python and visualizing them using a D3.js graph

Description

This project is an example that shows how to connect to Neo4j from Python, fetch some data from Facebook (your friends) and display your friends' relationships in a graph. This project uses the py2neo module to connect to the Neo4j RESTful interface, the facebook-sdk to fetch data from your Fracebook profile and D3.js (the 'chords' graph) to visualize the data.

Requirements

How To

git clone git@github.com:tiepologian/neo4j-facebook-example.git
cd neo4j-facebook-example

(edit neo4j-facebook.py and set YOUR_NAME and YOUR_FB_TOKEN to your full name on Facebook and your access token)
./neo4j-facebook.py

(If there are no errors, follows.json is created. Move it to the chords folder)
mv follows.json chords/

(Move the chords folder to your web server folder, I'm using Apache)
sudo mv chords/ /var/www/

You can view the chords graph from your browser: http://YOUR_IP_ADDRESS/chords

This is what mine looks like:

About

Storing Facebook friends data into Neo4j with Python and visualizing them using a D3.js graph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published