Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook Sharing - Fomat #118

Open
ronalessi opened this issue Jul 30, 2014 · 5 comments
Open

Facebook Sharing - Fomat #118

ronalessi opened this issue Jul 30, 2014 · 5 comments

Comments

@ronalessi
Copy link

When you share an article on facebook, "comments" and the "tag name" get added and what's worse is that there is no space between them so does not look good. See this screenshot: http://s29.postimg.org/51je0rlvr/facebook_sharing_issue.png

@Graloth
Copy link

Graloth commented Aug 7, 2014

It would seem that the sharing functionality is also pulling the contents of the article header, meaning that:

  • Article title is doubled, as shared link title as well as part of the text in the shared link, example linked by @ronalessi also shows this (look for "Welcome to Ghost")
  • The list in the header containing post date, tag(s) and comment count are also used in the shared link text, but because they are a styled list, they do not receive spacing, as @ronalessi mentions

I'm putting this here in order to provide more information on the issue.
While I'm not very good at javascript, I can still read it just fine, so I'll see if I can figure out if the issue is with the javascript that triggers the sharing dialogue or if it's the way facebook pulls the information.

@Graloth
Copy link

Graloth commented Aug 7, 2014

The issue is with the Facebook sharer, not Ghostium itself, since Ghostium simply passes the article URL to facebooks sharer.php system, which then scrapes the page for the content it needs.

It still gets the same problem as originally mentioned, I will see if I can dig out information on what the sharer looks for to pull the information from, it could probably be something as simple as it just converts the page to plaintext and uses that, in which case we are unlikely the first to encounter this issue.

Facebook also has a debug tool, here you can see the result it gets on my test site:

I'll continue doing some research on this, it would be rather annoying if we had to insert the header via javascript so that the Facebook scraper doesn't parse it into it's share text.

@Graloth
Copy link

Graloth commented Aug 7, 2014

Facebook has it's own system in place for having full control over what gets put into the sharer, it does require moving away from their sharer.php and over to using FB.iu, but it would make it a lot more flexible.

Facebook FB.ui documentation:
https://developers.facebook.com/docs/javascript/reference/FB.ui

Source that lead me to this information (also has good information on how to actually use it, for a quick start):
http://stackoverflow.com/questions/6138780/facebook-share-button-and-custom-text/6138912#6138912

Posting this here in case @oswaldoacauan feels like giving it a try

@ronalessi
Copy link
Author

Any update @Graloth ?

Any thoughts on this @oswaldoacauan as it affects your website as well?

@Graloth
Copy link

Graloth commented Aug 20, 2014

My computer i currently taken apart as I'm repairing it, so I haven't had time to look at it, plus I've upgraded to ghost 0.5, and haven't installed ghostium on it yet, but when I do I'll see if it's something that is easily fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants