application/modules/g/views/helpers/Social.php
public function facebookShareUrl($url = null, $text = null) {
        $shareUrl = is_null($url) ? $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] : $url;
        $url = 'http://facebook.com/sharer.php?u=' . urlencode($shareUrl);
        if (!is_null($text)) {
            $url .= '&t=' . $text;
        }
        return $url;
    }
public function facebookShareUrl($url = null, $text = null) {
        $shareUrl = is_null($url) ? $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] : $url;
        $url = 'http://facebook.com/sharer.php?u=' . urlencode($shareUrl);
        if (!is_null($text)) {
            $url .= '&t=' . $text;
        }
        return $url;
    }
public function facebookShareUrl ( $ url = null , $ text = null ) { $ shareUrl = is_null ( $ url ) ? $ _SERVER [ 'HTTP_HOST' ] . $ _SERVER [ 'REQUEST_URI' ] : $ url ; $ url = 'http://facebook.com/sharer.php?u=' . urlencode ( $ shareUrl ) ; if ( ! is_null ( $ text ) ) { $ url .= '&t=' . $ text ; } return $ url ; }
Generate a Facebook share URL

@param string $url Defaults to $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
@param string $text
@return string
Generate a Facebook share URL