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.
I am also attaching two screenshots of what your link looks like after
being shared on the wall, and what the feed dialog link looks like on the
wall.

The logo for the feed dialog is not resizing properly on the wall like it
does in the preview, but the description is there. There is no description
for the sharer link. I still say that I need to add open graph tags to fix
these issues. Open graph tags will also make our shared Twitter links look
better and stand out more.

On Fri, Oct 3, 2014 at 2:06 AM, Amber Michelle Webb <
amichelle.webb@gmail.com> wrote:

> 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>.
>>
>
>