Doesn't show correctly feeds of the fb page in block override

Created on 4 February 2023, almost 2 years ago

Problem/Motivation

Social Feed facebook block doesn't show correctly feeds of facebook fanpage entered in the block override.

Steps to reproduce

Step 1: Install the module and fill out the form at /admin/config/socialfeed/facebook
Step 2: Enable the Facebook Feed block on a page, check Customize Feed checkbox, enter a different facebook fanpage instead of the one added in the step 1.
Step 3: View the page, verify that the block is showing feed of the facebook fanpage entered in the step 1 instead of step 2 which is wrong.

Proposed resolution

In FacebookPostBlock.php replace
From

  $facebook = $this->facebook->createInstance($block_settings['app_id'], $block_settings['secret_key'], $block_settings['user_token'], $this->config->get('page_name'));

To
$facebook = $this->facebook->createInstance($block_settings['app_id'], $block_settings['secret_key'], $block_settings['user_token'], $block_settings['page_name']);

- Update the way to get pageId of the facebook fanpage in the FacebookPostCollector.php instead of always get page_id from global.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States hungdo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024