Jump to content

Welcome to DevFuse Forums

Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • 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

  • Donations

    Help fund your forum with donations, setup goals and track member donations. Offer rewards for members donating.
  • Timeslips

    Have your members submit their race times and share with others.
  • Videos

    Allows your members to submit their own videos for community viewing. Support is included for all the major video sites.
  • Forms

    Build your own forms for your members without coding experience. Support included for pm, email and topics.
  • Collections

    Build a community database of items for your members. Full features custom fields included.


[IPS] [K-34] IP.Downloads OpenGraph Image

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 News Bot

News Bot

    Dedicated Member

  • Members
  • PipPipPipPipPip
  • 1,909 posts
  • IP.Board Version:N/A

Posted 19 July 2013 - 04:08 PM

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)

View Resource