<?preg_match_all('#<img(.*)src="([^"]+)"#'$arResult["Post"]["textFormated"], $matchesPics);?>
<div class="blog-post-share">
    <?$APPLICATION->IncludeComponent("bitrix:asd.share.buttons"".default", array(
        
"ASD_TITLE" => $arResult["Post"]["~TITLE"],
        
"ASD_URL" => $APPLICATION->GetCurDir(),
        
"ASD_PICTURE" => $matchesPics[2][0],
        
"ASD_TEXT" => substr(strip_tags($arResult["Post"]["textFormated"]), 0100),
        
"ASD_INCLUDE_SCRIPTS" => array(),
        
"LIKE_TYPE" => "LIKE",
        
"VK_API_ID" => "",
        
"VK_LIKE_VIEW" => "",
        
"FB_LIKE_VIEW" => ""
        
),
        
false
    
);?>
    <?if ($matchesPics[2][0]!=""$APPLICATION->AddHeadString('<link rel="image_src" href="'.$matchesPics[2][0].'"/>');?>
    <?if ($matchesPics[2][0]!=""$APPLICATION->AddHeadString('<meta property="og:image" content="'.$matchesPics[2][0].'"/>');?>
</div>