\FacebookCallback
Synopsis
class FacebookCallback
extends SocialIntegrationControllerBaseClass
implements
SocialIntegrationAPIInterface
{
- // members
- private static Int $number_of_friends_that_can_be_retrieved = 1200;
- public static Array $allowed_actions = ;
- protected static String $facebook_id = NULL;
- protected static String $facebook_secret = NULL;
- protected static Boolean $email_fallback = true;
- protected static Array $permissions = false;
- protected static facebook $facebook_sdk_class = NULL;
- // methods
- public static void set_number_of_friends_that_can_be_retrieved()
- public static void get_number_of_friends_that_can_be_retrieved()
- public static void set_facebook_id()
- public static void get_facebook_id()
- public static void set_facebook_secret()
- public static void get_facebook_secret()
- public static void get_email_fallback()
- public static void set_email_fallback()
- public static void add_permission()
- public static void set_permissions()
- public static void get_permissions()
- protected static Facebook get_facebook_sdk_class()
- public static Object get_current_user()
- public static void send_message()
- public static Array get_list_of_friends()
- public static void is_valid_user()
- public static void get_updates()
- public void __construct()
- public void FacebookConnect()
- public void connectUser()
- public void Connect()
- public String FinishFacebook()
- public void loginUser()
- public void Login()
- public void remove()
- public void RemoveFacebook()
- protected Member updateUserFromFacebookData()
- public Array getFacebookPages()
- public void meondatabase()
- // Inherited methods from SocialIntegrationControllerBaseClass
- public static void get_default_avatar()
- public static void set_default_avatar()
- public static Boolean is_social_integration_api_class()
- public static Object get_login_button()
- public static String login_url()
- public static String connect_url()
- public static REDIRECTS! redirect_to_login_prompt()
- protected static String my_class_name()
- protected static String my_service_name()
- protected String my_security_form()
- public String Title()
- public String AbsoluteLink()
- public String Link()
- public static void is_valid_user()
- public void __construct()
- public void index()
- protected String returnURL()
- public void Tests()
- public void menondatabase()
- public void test()
Hierarchy
Members
private
- $number_of_friends_that_can_be_retrieved
—
Int
Maximum number of friends that can be retrieved
protected
- $email_fallback
—
Boolean
use email as a back-up for checking if the user already exists. - $facebook_id
—
String
get it from developer.facebook.com - $facebook_sdk_class — facebook
- $facebook_secret
—
String
get it from developer.facebook.com - $permissions — Array
public
- $allowed_actions
—
Array
Standard SS variable
Methods
protected
- get_facebook_sdk_class() — holds an instance of the FB class
- updateUserFromFacebookData() — Saves the FB data to the member and logs in the member if that has not been done yet.
public
- __construct() — magical PHP method
- Connect() — Connects the current user.
- FacebookConnect() — easy access to the connection
- FinishFacebook() — finish the login from facebook
- Login()
- RemoveFacebook() — remove connection to facebook TO DO: remove links TO DO: FB session
- add_permission()
- connectUser() — STEP 1 of the connecting process
- getFacebookPages() — retrieve the various identities this user has on Facebook
- get_current_user() — returns the currently logged in FB user
- get_email_fallback()
- get_facebook_id()
- get_facebook_secret()
- get_list_of_friends() — gets a list of friends
- get_number_of_friends_that_can_be_retrieved()
- get_permissions()
- get_updates()
- is_valid_user()
- loginUser()
- meondatabase()
- remove() — alias for RemoveFaceBook
- send_message()
- set_email_fallback()
- set_facebook_id()
- set_facebook_secret()
- set_number_of_friends_that_can_be_retrieved()
- set_permissions()
Inherited from SocialIntegrationControllerBaseClass
protected
- my_class_name() — The class being called (e.g. FacebookCallback::my_class_name should return FacebookCallback)
- my_security_form() — The name of the security form.
- my_service_name() — The current ClassName without the "Callback" portion.
- returnURL() — works out best Return URL
public
- AbsoluteLink() — returns Absolute URL to a link within this controller, by default it is the "Connect" link, because this controller always needs an action.
- Link() — returns relative URL to a link within this controller, by default it is the "Connect" link, because this controller always needs an action.
- Tests()
- Title() — returns Absolute URL to a link within this controller, by default it is the "Connect" link, because this controller always needs an action.
- connect_url() — Link to login form
- get_default_avatar()
- index() — you need to add an action
- is_valid_user()
- login_url()
- menondatabase()
- redirect_to_login_prompt() — redirects to login prompt, lets the user log in and returns to the returnURL specified.
- set_default_avatar()
- test()