Automattic / Automattic/jetpack

[Facebook Page Plugin] Facebook Pages without a username do not display

Open
#26,972 3 comments 0 reactions 0 assignees View on GitHub
[Feature] Extra Sidebar Widgets [Plugin] Jetpack [Pri] Low Bug Customer Report [LEGACY] Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Quick summary

While working on this ticket 5632494-zd-woothemes, I found that Facebook pages without a username set do not display in the Facebook Page Plugin widget.

**Facebook page URL without username**

Screen Shot 2022-10-16 at 4 37 35 pm

**Front-end**

Screen Shot 2022-10-16 at 4 39 55 pm

**Facebook page URL with username**

Screen Shot 2022-10-16 at 4 41 32 pm

**Front-end**

Screen Shot 2022-10-16 at 4 42 09 pm

### Steps to reproduce

1. Create a new Facebook page/use an existing one without a username.
2. Add the **Facebook Page Plugin** widget to your site.
3. Copy the **Facebook Page URL** and paste it into the widget.
4. The widget will not display Facebook page content.

### What you expected to happen

For the Facebook page content to display.

### What actually happened

The Facebook page content did not display.

### Context

While working on 5632494-zd-woothemes

### Platform (Simple, Atomic, or both?)

Simple

### Theme-specific issue?

Classic themes

### Browser, operating system and other notes

_No response_

### Reproducibility

Consistent

### Severity

Some (< 50%)

### Available workarounds?

Yes, easy to implement

### Workaround details

Set a username for the Facebook page by following the steps here: https://www.facebook.com/help/121237621291199

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Facebook Page Plugin widget with a Facebook page URL that has no username, then trace how the widget handles that URL. Done means the page content displays for URLs both with and without usernames; use the documented workaround as a comparison case.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.