Usefool facebook open graph

@param null $title
@param null $site
@param null $url
@param null $description
@param null $type
@param null $app
425677
public function fb($title = null, $site = null, $url = null, $description = null, $type = null, $app = null)
    {
        if (!is_null($title)) {
            $this->property('og:title', $title);
        }

        if (!is_null($site)) {
            $this->property('og:site_name', $site);
        }

        if (!is_null($url)) {
            $this->property('og:url', $url);
        }

        if (!is_null($description)) {
            $this->property('og:description', $description);
        }

        if (!is_null($url)) {
            $this->property('og:type', $type);
        }

        if (!is_null($app)) {
            $this->property('fb:app_id', $app);
        }
    }
1082514
public static void openDialog(
        String title,
        String hookUri,
        List<String> uploadedFiles,
        final CloseHandler<PopupPanel> closeHandler) {

        if (hookUri.startsWith("#")) {
            List<CmsUUID> resourceIds = new ArrayList<CmsUUID>();
            if (uploadedFiles != null) {
                for (String id : uploadedFiles) {
                    resourceIds.add(new CmsUUID(id));
                }

            }
            CmsEmbeddedDialogHandler handler = new CmsEmbeddedDialogHandler(new I_CmsActionHandler() {

                public void leavePage(String targetUri) {

                    // TODO Auto-generated method stub

                }

                public void onSiteOrProjectChange(String sitePath, String serverLink) {

                    // TODO Auto-generated method stub

                }

                public void refreshResource(CmsUUID structureId) {

                    closeHandler.onClose(null);
                }
            });
            String dialogId = hookUri.substring(1);
            handler.openDialog(dialogId, CmsGwtConstants.CONTEXT_TYPE_FILE_TABLE, resourceIds);

        } else {
            Map<String, String> parameters = new HashMap<String, String>();
            parameters.put(I_CmsUploadConstants.PARAM_RESOURCES, Joiner.on(",").join(uploadedFiles));
            CmsPopup popup = CmsFrameDialog.showFrameDialog(
                title,
                CmsCoreProvider.get().link(hookUri),
                parameters,
                closeHandler);
            popup.setHeight(DIALOG_HEIGHT);
            popup.setWidth(CmsPopup.DEFAULT_WIDTH);
            popup.center();
        }
    }
606748
public function createNode($type, $title)
    {
        // @todo make this easily extensible.
        $node = (object) array(
        'title' => $title,
        'type' => $type,
        );
        $saved = $this->nodeCreate($node);
        // Set internal page on the new node.
        $this->getSession()->visit($this->locatePath('/node/' . $saved->nid));
    }
932317
public function setTitle($title, $appendDefault = true)
    {
        $this->metatags()->setTitle($title, $appendDefault);
        $this->opengraph()->setTitle($title);
        $this->twitter()->setTitle($title);
        $this->jsonLd()->setTitle($title);

        return $this;
    }
1224268
public static function link($title, $url, array $options = [])
    {
        $toolbar = Toolbar::getInstance(self::$_toolbar);
        $options += [
            'icon'   => 'link',
            'button' => 'grey lighten-3'
        ];

        $toolbar->appendButton('Core.link', $title, $url, $options);
    }
823831
protected function visitContentPage($op, $type, $title) {
    $nid = $this->getCore()->getEntityIdByLabel('node', $type, $title);
    $path = [
      'view' => "node/$nid",
      'edit' => "node/$nid/edit",
      'delete' => "node/$nid/delete",
    ];
    $this->visitPath($path[$op]);
  }
356245
public static function linkToFeed($url, $title = null)
    {
        $title = Convert::raw2xml($title);
        Requirements::insertHeadTags(
            '<link rel="alternate" type="application/rss+xml" title="' . $title . '" href="' . $url . '" />'
        );
    }
947150
protected function displayInternal($uri_prefix = '', $tag = null)
    {
        $link = new SwatHtmlTag('link');
        $link->title = $this->title;
        $link->rel = $this->relationship;
        $link->type = $this->type;
        $link->href = $this->link_uri;
        $link->display();
    }
1235170
public function setHome($title, $url=NULL) {
		
		$path			= new \stdClass();
		$path->title	= $title;
		$path->url		= $url;
		$path->active	= count($this->paths) > 1 ? FALSE : TRUE;
		
		$this->paths[0] = $path;
		
	}
1246116
public function facebookShare($url = '', $text = '')
    {
        $facebook = new Facebook();

        return $facebook
            ->setAppId($this->data['facebook']['appId'])
            ->setAdminId($this->data['facebook']['adminId'])
            ->setRedirectUrl($this->data['facebook']['redirectUrl'])
            ->createShareLink($url, $text)
            ->getLink();
    }
559656
public function iClickTheTitleOnTheBlogPostList($title)
    {
        $node = $this->getSession()->getPage()->find('xpath', sprintf('//h2[contains(., "%s")]/a', $title));

        if (is_null($node)) {
            throw new ElementNotFoundException($this->getSession(), 'Blog post title');
        }

        $node->click();
    }
1148627
public function iVisitTheBlogPostPage($title)
    {
        $post = $this->findPostByTitle($title);
        $url = '/'.$post['post_name'];

        return new Then(sprintf('I go to "%s"', $url));
    }
82731
public function prepend($title, $url, array $options = array()) {
        array_unshift($this->_crumbs, array(
            'title' => strip_tags($title),
            'url' => $url,
            'options' => $options
        ));

        $this->OpenGraph->title($this->pageTitle(null, array('reverse' => true)));
        $this->OpenGraph->uri($url);

        return $this;
    }
1245464
public function action($title, $url, $style = '')
    {
        $this->actions[] = [
            'type' => 'button',
            'text' => $title,
            'url' => $url,
            'style' => $style,
        ];

        return $this;
    }
771074
public function start($title = null)
    {
        if (!$this->isError) {
            if ($this->state === self::STATE_RUN) {
                $this->pause();
            }

            if ($this->state === self::STATE_STOP) {
                $this->titles = [$title];
                \xdebug_start_trace($this->traceFile, XDEBUG_TRACE_COMPUTERIZED);
            } elseif ($this->state === self::STATE_PAUSE) {
                $this->titles[] = $title;
                \xdebug_start_trace($this->traceFile, XDEBUG_TRACE_COMPUTERIZED | XDEBUG_TRACE_APPEND);
            }

            $this->state = self::STATE_RUN;
        }
    }
454748
public function link($url, $title = null, $attributes = array(), $secure = null)
	{
		$url = $this->url->to($url, array(), $secure);

		if (is_null($title) || $title === false) $title = $url;

		return '<a href="'.$url.'"'.$this->attributes($attributes).'>'.$this->entities($title).'</a>';
	}
875146
public function add(string $title, string $url)
    {
        $this->breadcrumbs->push(new Breadcrumb($title, $url));
    }