public function setImageOG($imageObj)
    {
        if($imageObj) {
            Meta::set("og:image", asset($imageObj->url), "property");
            Meta::set("og:image:type", $imageObj->type."/".str_replace("jpg", "jpeg", $imageObj->extension), "property");
            if($imageObj->description) {
                Meta::set("og:image:alt", $imageObj->description, "property");
            }

            if($imageObj->dimensions) {
                $image = explode("x", $imageObj->dimensions);
                Meta::set("og:image:width", $image[0], "property");
                Meta::set("og:image:height", $image[1], "property");
            }
        }
        return $this;
    }
public function setImageOG($imageObj)
    {
        if($imageObj) {
            Meta::set("og:image", asset($imageObj->url), "property");
            Meta::set("og:image:type", $imageObj->type."/".str_replace("jpg", "jpeg", $imageObj->extension), "property");
            if($imageObj->description) {
                Meta::set("og:image:alt", $imageObj->description, "property");
            }

            if($imageObj->dimensions) {
                $image = explode("x", $imageObj->dimensions);
                Meta::set("og:image:width", $image[0], "property");
                Meta::set("og:image:height", $image[1], "property");
            }
        }
        return $this;
    }
public function setImageOG ( $ imageObj ) { if ( $ imageObj ) { Meta :: set ( "og:image" , asset ( $ imageObj -> url ) , "property" ) ; Meta :: set ( "og:image:type" , $ imageObj -> type . "/" . str_replace ( "jpg" , "jpeg" , $ imageObj -> extension ) , "property" ) ; if ( $ imageObj -> description ) { Meta :: set ( "og:image:alt" , $ imageObj -> description , "property" ) ; } if ( $ imageObj -> dimensions ) { $ image = explode ( "x" , $ imageObj -> dimensions ) ; Meta :: set ( "og:image:width" , $ image [ 0 ] , "property" ) ; Meta :: set ( "og:image:height" , $ image [ 1 ] , "property" ) ; } } return $ this ; }
Set image open graph

@param  object $imageObj
@return $this
Set image open graph