fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.28k stars 1.78k forks source link

Social sharing- facebook issue #1772

Open kandaria opened 6 years ago

kandaria commented 6 years ago

Sharing is not working properly for me. Content posted to facebook contains proper link and when its clicked it opens right page, with right image displayed inside fancybox. BUT on facebook it displays description of first item facebook scrapped, and no image at all. Pinterest and twitter sharing seems to be working properly. Regarding facebook issue I think setting og matta data for each opened image would correct it, but honestly, I have no idea how to go about it. My gallery is built in php and dynamically populated from database. So any idea if there's way to include of meta data as link attribute, or something along those lines...

carasmo commented 6 years ago

I see what's up. The sharer.php changed https://stackoverflow.com/a/40319441/1004312

If you follow the links in that answer, you'll find that in December 2017, the instructions in that answer also don't work.

https://faq.buffer.com/article/255-can-i-customize-images-for-my-link-attachments

No more preview and editing due to fake news:

https://www.facebook.com/business/help/247886969033572

Several steps verify domain, get an app id, and claim link ownership. It's a big project.

One plugin in WordPress that adds social sharing to images, creates a php file that modifies the head and changes the og content. Though when you test a lot of other things out there, they are working due to the old api and the caching, I am guessing, because the &p[image][0] or &picture don't work now according to the Facebook app instructions for feeds.

Facebook is painful.

acwolff commented 5 years ago

For a solution see #1974