facebook-opengraphyammersalesforce-chatterjive

How to serve OpenGraph for a private page


we'd like to implement OpenGraph on an intranet application, so that when people share a URL from the application into a social network (Yammer, Jive, Chatter ...), it would show a nice thumbnail, description, and so forth.

The problem: because Yammer is not connected to the intranet, it follows the redirections and serves OpenGraph data from the login page...

Is there a way to behave properly in such a case ?

We've come up with 3 possible solutions:

Thanks for your input if you've been confronted to this problem too !


Solution

  • Third solution sounds like the best one. Since it is allowed (by your rules) to show part of a data outside your intranet, you have to add individual thumbnail and description in the meta tags of login page.

    (i.e. you shouldn't redirect not logged in visitors to the page yoursite.com/loginpage. You have to show a login form on all such pages)