本文整理汇总了PHP中UserAction::controller方法的典型用法代码示例。如果您正苦于以下问题:PHP UserAction::controller方法的具体用法?PHP UserAction::controller怎么用?PHP UserAction::controller使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserAction
的用法示例。
在下文中一共展示了UserAction::controller方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: catch
} catch (Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch (Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
} else {
$helper = $fb->getRedirectLoginHelper();
$loginUrl = $helper->getLoginUrl('https://apps.facebook.com/bcakirdotcom/', $permissions);
echo "<script>window.top.location.href='" . $loginUrl . "'</script>";
}
include __DIR__ . '/lib/Classes/Database.php';
include __DIR__ . '/lib/Classes/UserAction.php';
$userAction = new UserAction();
$userData = $userAction->controller($userInfo, $friends);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="author" content="bcakir" />
<link rel="stylesheet" type="text/css" href="assets/ext/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="assets/css/style.css?v=1.3" />
<script type="text/javascript" src="assets/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/ext/bootstrap/js/bootstrap.min.js"></script>
<div id="fb-root"></div>
<script src="https://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript" src="assets/js/gift.js?v=1.3"></script>
<script>FB.init({appId: '<?php