GitHub social media image is not refreshed on update

I've changed the social media image of my GitHub repository, but when I try to share it in facebook and it displays the old image as I've never updated it in the first place. The image can be updated by going to your repo -> Settings -> Social preview. I dowloaded the template and used it to create an image, but did not remove the red bars on the sides. When I shared it looked like crap, so I removed the red bars and made them white. Now my phone does not want to display the new image when I share it on facebook.

Is this a browser related cache issue or simply the GitHub feature does not work? What am I doing wrong?

Upvotes: 2

Views: 2851

Answers (3)

alexanderdavide
alexanderdavide

Reputation: 1675

I had this issue with Twitter. It was enough logging out and logging in again.

Upvotes: 0

Zakaria Mahmoud
Zakaria Mahmoud

Reputation: 21

Just add ?anything to link of repository.

Example : https://github.com/ZakariaMahmoud/image-generator/?anything

Upvotes: 2

The problem was solved when I made an URL re-scrape as @04FS suggested. I had to open the facebook page with a regular browser, not the dedicated app, follow the link he provided and paste the URL in there. In the option Time Scraped was set to yesterday at 11:32, which means that FB caches internally the URL result. After hitting the button Scrape Again, the social media picture appeared correctly without the red borders.

Upvotes: 2

Related Questions