• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented og:image and og:type meta tags

Bob

Developer
Staff member
I've updated the og:image and og:type meta tags for AMS Articles.

The og:image will use the Cover Image (if set). This comes in handy when sharing to social networks like Facebook, Twitter, Google Plus, Tumblr, Pinterest etc.

I've also changed the og:type from 'website' to 'article' (which is what is recommended for the type of content that a AMS Article is).

Here are a couple examples of the og:image coming into play when sharing an AMS Article to via social sharing tools (in this example, sharing to Twitter).

Selection_999(005).png

Selection_999(003).png

Selection_999(004).png
 
Upvote 1
This suggestion has been implemented. Votes are no longer accepted.
I've made a few tweaks while testing and added in Category Image support.

Note: Just so everyone understands, just because you HAVE a Cover Image set or have a Category Image set, that does not mean that the social network (Twitter, Facebook etc) will accept either of the images. They have code on their end that will determine whether to use the OG image that is being set by the source.

Note 2: CACHE comes into play with social networks. For example, if you are testing and you share an article to twitter, you can't delete that share from twitter, change the cover image and share again (as the old tweet is cached for that URL). If you want to TEST, you need to test smartly (create dummy content, and don't reuse it). Create, Share, Delete (rinse and repeat).

Important Note: Most social networks have a MINIMUM required size for og images. This means that You can't upload an ICON for Category Images. Both Twitter and Facebook require images over 400px, so using small category images is probably not going to cut it.
 
Back
Top