Code Monkey home page Code Monkey logo

connect-js's Introduction

FB Connect JS SDK with external datasources

This is a fork of the Facebook Connect JavaScript SDK with support for connecting to other graph data sources than Facebook. This readme will explain what is added to the Facebook SDK. Please see Facebook Connect JavaScript SDK for details on all the rest of the library.

This version of connect.js allows you to connect to other datasources than facebook through the graph API. Set up a database server that follows the FB graph standard, and this API can talk to it.

Usage

Initiate connect.js with the "external_domains" parameter:

FB.init({
    appId  : 'YOUR APP ID',
    status : true, // check login status
    cookie : true, // enable cookies to allow the server to access the session
    xfbml  : true, // parse XFBML

    external_domains : {
        myserver : 'http://graph.example.com/'
    }

});

Access your external domain through namespacing the api paths:

FB.api('myserver:/path/to/data', function(response) {
    
});

The namespace "fb:" is available by default for consistency. If you do not provide a namespace the SDK behaves the same as the standard facebook connect.js.

Getting a server running

There is currently work beeing done on a beta backend server that wraps a Neo4j graph database and exposes its data the same way facebook does. It should be available shortly.

Using a full blood graph database like Neo4j enables you to fully benifit from using the graph API. A graph database backend opens the possibility for more advanced paths (such as XPath) in the future.

connect-js's People

Contributors

bgold avatar daaku avatar jakewins avatar lshepard avatar yohannrichard avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.