public function setArticleOG($postObj)
    {
        Meta::set("article:published_time", $postObj->created_at->format('c'), "propery");// When the article was first published.
        Meta::set("article:modified_time", $postObj->updated_at->format('c'), "propery");// When the article was last changed.

        // Author
        if($postObj->user) {
            Meta::set("article:author", $postObj->user->firstName . " " . $postObj->user->lastName, "propery");// Writers of the article.
        }

        // Category
        if($postObj->hasCategory()) {
            Meta::set("article:section", $postObj->category->title, "propery");// - A high-level section name. E.g. Technology
        }

        // Tags
        if($postObj->hasTags()) {
            foreach($postObj->tags as $tag){
                Meta::set("article:tag", $tag->title, "propery");// Tag words associated with this article.
            }
        }
        return $this;
    }
public function setArticleOG($postObj)
    {
        Meta::set("article:published_time", $postObj->created_at->format('c'), "propery");// When the article was first published.
        Meta::set("article:modified_time", $postObj->updated_at->format('c'), "propery");// When the article was last changed.

        // Author
        if($postObj->user) {
            Meta::set("article:author", $postObj->user->firstName . " " . $postObj->user->lastName, "propery");// Writers of the article.
        }

        // Category
        if($postObj->hasCategory()) {
            Meta::set("article:section", $postObj->category->title, "propery");// - A high-level section name. E.g. Technology
        }

        // Tags
        if($postObj->hasTags()) {
            foreach($postObj->tags as $tag){
                Meta::set("article:tag", $tag->title, "propery");// Tag words associated with this article.
            }
        }
        return $this;
    }
public function setArticleOG ( $ postObj ) { Meta :: set ( "article:published_time" , $ postObj -> created_at -> format ( 'c' ) , "propery" ) ; // When the article was first published. Meta :: set ( "article:modified_time" , $ postObj -> updated_at -> format ( 'c' ) , "propery" ) ; // When the article was last changed. // Author if ( $ postObj -> user ) { Meta :: set ( "article:author" , $ postObj -> user -> firstName . " " . $ postObj -> user -> lastName , "propery" ) ; // Writers of the article. } // Category if ( $ postObj -> hasCategory ( ) ) { Meta :: set ( "article:section" , $ postObj -> category -> title , "propery" ) ; // - A high-level section name. E.g. Technology } // Tags if ( $ postObj -> hasTags ( ) ) { foreach ( $ postObj -> tags as $ tag ) { Meta :: set ( "article:tag" , $ tag -> title , "propery" ) ; // Tag words associated with this article. } } return $ this ; }
Set article open graph

@param  object $postObj
@return $this
Set article open graph