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