PHP code example of proklung / bitrixoggraphbundle

1. Go to this page and download the library: Download proklung/bitrixoggraphbundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

proklung / bitrixoggraphbundle example snippets


 bitrixoggraph:
  enabled: true # Бандл активирован?
  site_name: 'EXAMPLE.RU'
  img: '/favicon.ico'
  fb_admins: '444003346913744'
  article_publisher: 'https://facebook/Example/'

 container()->get('bitrix_og_graph_bundle.facade.element')->make(
    $arResult['IBLOCK_ID'],
    $arResult['ID'],
);

 container()->get('bitrix_og_graph_bundle.facade.section')->make(
    $arResult['IBLOCK_ID'],
    $arResult['ID'],
);

 container()->get('bitrix_og_graph_bundle.facade.static')->make();