This very simple hook adds an og:image metatag to your file download pages.
This is the metatag that site's such as Facebook use for link preview images.
(See the sample image to the right for an example, image credit goes to Richir Outreach)
Without this hook enabled, whenever someone uses a site like Facebook to link to a file hosted on your website, this is the preview image they will see:
This is the default for IP.Board. If you allow screenshots with your file submissions, you probably don't want that. That's where this hook comes in. It simply parses your files featured image and uses it instead.
Once installed, you can use Facebook's debugging tool here to ensure it's working. Just paste a link to any of your files. Assuming you have a preview image included with that file, you should see it first under og:image. (You will still see the IP.Board logo after it)
Welcome to DevFuse Forums
- Start new topics and reply to others
- Subscribe to topics and forums to get email updates
- Get your own profile page and make new friends
- Send personal messages to other members.
Guest Message by DevFuse
(View All Products)Featured Products
Help fund your forum with donations, setup goals and track member donations. Offer rewards for members donating.
Have your members submit their race times and share with others.
Allows your members to submit their own videos for community viewing. Support is included for all the major video sites.
Build your own forms for your members without coding experience. Support included for pm, email and topics.
Build a community database of items for your members. Full features custom fields included.
[IPS] [K-34] IP.Downloads OpenGraph Image
No replies to this topic