adding titles and summaries to social media share links

I added parameters into the links instead of using Open Graph tags (og tags) as discussed with Dak. OG tags give us more control over what displays when shared, especially in Twitter. But, this is still a big improvement over what we have now.
The sharer link that you are using does not read the cnx logo or
description you provided. I am attaching two screenshots. One is if the
link you are using, and the other is the link I am using. Also, I am able
to navigate to that Facebook developer link without problem.

On Thu, Oct 2, 2014 at 11:35 PM, Derek Kent <notifications@github.com>
wrote:

> In src/scripts/helpers/backbone/views/base.coffee:
>
> > @@ -102,6 +102,28 @@ define (require) ->
> >          canonicalUrl = "<link rel=\"canonical\" href=\"//#{location.hostname}/contents/#{parentId}/\" />"
> >          $('head').append(canonicalUrl)
> >
> > +
> > +    socialMediaInfo: () ->
> > +      share =
> > +        url: window.location.href
> > +        source:'OpenStax CNX'
> > +        via:'cnxorg'
> > +        summary:$('.summary').text() or 'An OpenStax College book.'
> > +        title: document.title
> > +        image: location.origin + "/images/logo.png"
> > +        # App ids ARE required for Facebook.
>
> So I'm confused about what you mean by custom parameters, since the link
> provided above (
> https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fcnx.org&media=http%3A%2F%2Fcnx.org%2Flogo.png&description=CNX)
> seems to work with what I would call custom parameters.
>
> The facebook developer link you provided appears to be broken.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Connexions/webview/pull/699/files#r18381223>.
>