Coder Social home page Coder Social logo

node_apply-magic-sauce's Introduction

Using Node and Apply Magic Sauce API

Research Paper: http://www.pnas.org/content/110/15/5802.full.pdf?with-ds=yes

API documentation: https://applymagicsauce.com/documentation.html

Predicted Traits from Like IDs: https://applymagicsauce.com/documentation_traits.html

See what Facebook tells you it knows about you: https://www.facebook.com/ads/preferences/

##Instructions for setup

  • get customer ID and API key at https://applymagicsauce.com/research.html
  • open terminal
  • type cd path/to/downloaded/folder and enter (learn more about terminal here)
  • in the terminal window type npm install
  • go to the downloaded folder and rename the file secrets_example.json to secrets.json
  • open the secrets.json file and paste in your Apply Magic Sauce customer_id and api_key
    • leave the token for now
  • in the terminal window type node app.js

##Example Facebook Like IDs

18807449704 - Mashable

115384328477363 - The Creators Project

7976226799 - The Daily Show

10429446003 - The xx

5878552155 - Ludovico Einaudi

6815841748 - Barack Obama

35481394342 - The Godfather

9328458887 - adidas Originals

12463674069 - Curly Fries

124955570892789 - Bernie Sanders

102099916530784 - Humans of New York

https://developers.facebook.com/tools/explorer/

##View predictions in HTML format

This page will automatically grab the predictions.json file from the folder to display the data in a more readable format. It also adds links to the corresponding Facebook pages. So, e.g. Mashable can be accesed via http://facebook.com/18807449704.

  • if you are not in the directory of the main folder, type cd path/to/downloaded/folder and enter
  • type python -m SimpleHTTPServer and enter
  • open browser at localhost:8000/public

node_apply-magic-sauce's People

Contributors

01fade avatar

Watchers

Regina Flores avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.