GitHub social media image is not refreshed on update

2.4k views Asked by At

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?

3

There are 3 answers

0
Деян Добромиров On BEST ANSWER

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.

0
Zakaria Mahmoud On

Just add ?anything to link of repository.

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

1
alexanderdavide On

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