Upgrade 1.4 to 2.0 Facebook not working

Created on 9 November 2022, about 2 years ago
Updated 27 January 2023, almost 2 years ago

Problem/Motivation

Existing Facebook Blocks give no posts but a error message

Exception: Client error: `GET https://graph.facebook.com//feed?access_token=xxxxxxxx&fields=created_ti...` resulted in a `400 Bad Request` response: {"error":{"message":"Unsupported get request. Please read the Graph API documentation at https:\/\/developers.facebook.c (truncated...)

Steps to reproduce

have a 1.4 site with FB blocks update to 2.0

Proposed resolution

in the getFacebookFeedUrl function in the FacebookPostCollector class use:

$config->get('page_name') instead of $config->get('page_id')

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇩🇪Germany spuky

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024