api.private.core_user.php - JustDerb/Snack-Tack GitHub Wiki

api/private/core_user.php

st_user_isRegistered($fbID)

Checks to see if the current user is registered in the system.

Arguments

Variable Type Description
$fbID string Current user's Facebook ID, given from the Facebook PHP API.

Returns

  • true if the user is registered, false otherwise.

st_user_getData($fbID)

Grabs the user info from the system about the user ID.

Arguments

Variable Type Description
$fbID string Current user's Facebook ID, given from the Facebook PHP API.

Returns

  • Array (type:user) of the user who's ID matches that. Otherwise, an array (type:message) if the user is not found.

st_user_register($facebookProfile, $check)

Registers the user in the system.

Arguments

Variable Type Description
$facebookProfile array Current user's Facebook object, given from the Facebook PHP API.
$check boolean Call st_user_isRegistered to check if user has been added. If they are, user will not be registered again.

Returns

  • Array (type:user) of the newly created user.