When using customise feed, you are not asked for a user token, but the code requires one. I've written a patch to add one to the form and use the system default as the default value.

CommentFileSizeAuthor
#2 add_user_token_to_block_form-3117462-2.patch749 bytestyeth

Comments

tyeth created an issue. See original summary.

tyeth’s picture

Patch attached. Closing linked issue (spam detected).

tyeth’s picture

Original function with problem ( $block_settings['user_token'] doesnt exist):
File: web\modules\contrib\socialfeed\src\Plugin\Block\FacebookPostBlock.php

 public function build() {
    $build = [];
    $items = [];
    $block_settings = $this->getConfiguration();
    try {
      if ($block_settings['override']) {
        $facebook = $this->facebook->createInstance($block_settings['app_id'], $block_settings['secret_key'], $block_settings['user_token'], $this->config->get('page_name'), NULL);
      }
      else {
        $facebook = $this->facebook->createInstance($this->config->get('app_id'), $this->config->get('secret_key'), $this->config->get('user_token'), $this->config->get('page_name'), NULL);
      }
tyeth’s picture

Status: Active » Needs review

  • b1175d6 committed on 8.x-1.x
    Issue #3127876 by tyeth: FB: Error with newly installed and patched v8,...
hemangi.gokhale’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.