Coder Social home page Coder Social logo

helpfulrobot / micmania1-silverstripe-facebook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from micmania1/silverstripe-facebook

0.0 2.0 0.0 257 KB

Facebook Integration module ported from micmania1/sstwitter

PHP 56.04% Ruby 4.99% CSS 33.71% JavaScript 1.00% Scheme 4.26%

micmania1-silverstripe-facebook's Introduction

Silverstripe Facebook

This module is to allow integration between Facebook and Silverstripe. Its based (and ported from) the sstwitter module.

Features

  • CMS interface to integrate Silverstripe with a Facebook application & connect an account to the website.
  • Connect/Disconnect Member's to Facebook accounts.
  • Facebook signup.
  • Enable/Disable Facebook login & signup through the CMS.
  • Developer Access to Facebook API through the official Facebook PHP SDK.

Usage

$FacebookConnectURL (FacebookApp::connect_url()) This displays a link where a logged in user will be taken through the Facebook authentication process to connect their Facebook account.

$FacebookDisconnectURL (FacebookApp::disconnect_url()) This will disassociate the Facebook account from the Member.

$FacebookLoginURL (FacebookApp::login_url()) This will return a url whereby the user can login to their Silverstripe account through Facebook. It will sign the user up if a Facebook account connect be found and Signup is enabled.

<a href="$FacebookConnectURL">Connect</a><br />
<a href="$FacebookDisconnectURL">Disconnect</a><br />
<% if FacebookLoginURL %>
    <a href="$FacebookLoginURL">Login</a>
<% else %>
    Facebook Login is disabled.
<% end_if %>

Extending

Silverstripe Facebook allows you to use the full power of Facebook's PHP SDK. You can access this by referencing FacebookApp->getFacebook().

micmania1-silverstripe-facebook's People

Contributors

micmania1 avatar

Watchers

James Cloos avatar helpfulrobot 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.