Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getLoginUrl($params=array()) {
- $this->establishCSRFTokenState();
- $currentUrl = $this->getCurrentUrl();
- return $this->getUrl(
- 'www',
- 'dialog/oauth',
- array_merge(array(
- 'client_id' => $this->getAppId(),
- 'redirect_uri' => $currentUrl, // possibly overwritten
- 'state' => $this->state),
- $params));
- }
- public function getLogoutUrl($params=array()) {
- if( !HAPPY_URL ) # s no existen URLS_Amigables
- $currentUrl = $this->getCurrentUrl();
- else $currentUrl = HTTP_SERVER. 'log/out/facebook'; # tomamos nuestra URL
- return $this->getUrl(
- 'www',
- 'logout.php',
- array_merge(array(
- 'next' => $currentUrl,
- 'access_token' => $this->getAccessToken(),
- ), $params)
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement