Added Addthis, but sharing a post shows title of page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
anthonytv
Regular
Posts: 5
Joined: Wed May 02, 2012 1:28 pm

Added Addthis, but sharing a post shows title of page

Post by anthonytv »

Hi. I just put serendipity on my site, and added the addthis sharing feature to it, but when i make a post and copy and paste the link to a specific post into facebook, the facebook link states the title of my full serendipity ran page, and doesnt have any of the text from the post displayed. How do I change this?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Added Addthis, but sharing a post shows title of page

Post by yellowled »

anthonytv wrote:I just put serendipity on my site, and added the addthis sharing feature to it, but when i make a post and copy and paste the link to a specific post into facebook, the facebook link states the title of my full serendipity ran page, and doesnt have any of the text from the post displayed. How do I change this?
Erm. Are you saying you copy the link generated by the addthis widget manually into a post on FB? Because you'd only need to copy the title link (most templates link the title of an entry to the single entry page) into a FB post, that should work fine …?

YL
anthonytv
Regular
Posts: 5
Joined: Wed May 02, 2012 1:28 pm

Re: Added Addthis, but sharing a post shows title of page

Post by anthonytv »

yellowled wrote:
anthonytv wrote:I just put serendipity on my site, and added the addthis sharing feature to it, but when i make a post and copy and paste the link to a specific post into facebook, the facebook link states the title of my full serendipity ran page, and doesnt have any of the text from the post displayed. How do I change this?
Erm. Are you saying you copy the link generated by the addthis widget manually into a post on FB? Because you'd only need to copy the title link (most templates link the title of an entry to the single entry page) into a FB post, that should work fine …?

YL
http://anthonytv.com/index.html
This is my new site, i put serendipity as a subdomain into an iframe as my news page, and you'll see i made a post entitled "First Post!," but when you share that post via the addthis tool or even just try to right click "first post!" and copy the link it will show up in facebook as "Anthony TV News" and underneath just have the web URL, when i'd like it to say "First Post!" and underneath have the text from that very post.
http://www.anthonytv.com AnthonyTV - From The Miraculous to The Conspiracy
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Added Addthis, but sharing a post shows title of page

Post by yellowled »

anthonytv wrote:but when you share that post via the addthis tool or even just try to right click "first post!" and copy the link it will show up in facebook as "Anthony TV News" and underneath just have the web URL, when i'd like it to say "First Post!" and underneath have the text from that very post.
Okay, so it doesn't seem to be an issue of using an embedded s9y – even if I invoke addthis from your subdomain, it sends the blog title and URL to FB. It does seem to work properly with Twitter, however, so it might be specific to FB.

The only thing we do on the template side is get the url and title of a post and relay those to addthis, which seems to work fine with other services. So I guess this is a FB-only issue.

I have to admit I haven't used addthis in a long time myself. Maybe Don knows more about this.

YL
anthonytv
Regular
Posts: 5
Joined: Wed May 02, 2012 1:28 pm

Re: Added Addthis, but sharing a post shows title of page

Post by anthonytv »

I think it has something to do with Fb's use of what is called the "open graph" protocoland meta tags. For instance, look at this article: http://www.wpbeginner.com/wp-themes/how ... ss-themes/ Perhaps that can lead someone toward helping me figure this out for serendipity?
http://www.anthonytv.com AnthonyTV - From The Miraculous to The Conspiracy
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Added Addthis, but sharing a post shows title of page

Post by yellowled »

anthonytv wrote:Perhaps that can lead someone toward helping me figure this out for serendipity?
I don't think it's a s9y issue, actually.

Anyway, you could always use the findmore plugin as an alternative (it does give you basically the same sharing options, but without addthis). If you want to automatically post blog entries to FB, you should probably have a look at suitable FB apps for that. RSS Graffitti works pretty well.

YL
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Added Addthis, but sharing a post shows title of page

Post by Don Chambers »

I see you are using the bulletproof template - are you using the addthis feature built into the template, or did you add your own code?

And, while not related to your issue, why using an iframe?
=Don=
anthonytv
Regular
Posts: 5
Joined: Wed May 02, 2012 1:28 pm

Re: Added Addthis, but sharing a post shows title of page

Post by anthonytv »

I went into administration adn in my settings it had an option to give my addthis account #, so no I didn't add in any code myself. also, I did the iframe because all of the other links on the top of my page will load directly into the iframe, leaving less bandwidth used and ease of site design for me.
http://www.anthonytv.com AnthonyTV - From The Miraculous to The Conspiracy
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Added Addthis, but sharing a post shows title of page

Post by Don Chambers »

anthonytv wrote:I think it has something to do with Fb's use of what is called the "open graph" protocoland meta tags. For instance, look at this article: http://www.wpbeginner.com/wp-themes/how ... ss-themes/ Perhaps that can lead someone toward helping me figure this out for serendipity?
Edit your template's index.tpl file, and add this somewhere in the <head>:

Code: Select all

{if $view =='entry'}
	<meta property="og:title" content="{$entry.title|escape}" />
	<meta property="og:type" content="article" />
	<meta property="og:url" content="{$entry.rdf_ident}" />
	<meta property="og:site_name" content="{$blogTitle}" />
{/if}
=Don=
onli
Regular
Posts: 2830
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Added Addthis, but sharing a post shows title of page

Post by onli »

Make also sure you enable RewriteUrl. FB has bugs with the escaping of urls, so it won't work to link to normal entries when they are not rewritten.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Added Addthis, but sharing a post shows title of page

Post by Timbalu »

@YL - sorry for a small detour...
This just brought me up to remember to ask you, if this rdf link in entries.tpl needs the xml like ending in HTML5 too or can be written as ">?

Code: Select all

        <rdf:Description
                 rdf:about="{$entry.link_rdf}"
                 trackback:ping="{$entry.link_trackback}"
                 dc:title="{$entry.title_rdf|@default:$entry.title}"
                 dc:identifier="{$entry.rdf_ident}" />
        </rdf:RDF>
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Added Addthis, but sharing a post shows title of page

Post by yellowled »

Timbalu wrote:This just brought me up to remember to ask you, if this rdf link in entries.tpl needs the xml like ending in HTML5 too or can be written as ">?
If I interpret it correctly, RDF/XML does not require " />". Then again, it doesn't really hurt to leave it that way, does it?

YL
anthonytv
Regular
Posts: 5
Joined: Wed May 02, 2012 1:28 pm

Re: Added Addthis, but sharing a post shows title of page

Post by anthonytv »

Don Chambers wrote:
anthonytv wrote:I think it has something to do with Fb's use of what is called the "open graph" protocoland meta tags. For instance, look at this article: http://www.wpbeginner.com/wp-themes/how ... ss-themes/ Perhaps that can lead someone toward helping me figure this out for serendipity?
Edit your template's index.tpl file, and add this somewhere in the <head>:

Code: Select all

{if $view =='entry'}
	<meta property="og:title" content="{$entry.title|escape}" />
	<meta property="og:type" content="article" />
	<meta property="og:url" content="{$entry.rdf_ident}" />
	<meta property="og:site_name" content="{$blogTitle}" />
{/if}
Damn it, I attempted to do so but the parent directory is read-only, it seems that if you use 1and1's click and build to install serendipity, that they lockdown the files so youre stuck with their templates. What should I do?
http://www.anthonytv.com AnthonyTV - From The Miraculous to The Conspiracy
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Added Addthis, but sharing a post shows title of page

Post by Don Chambers »

anthonytv wrote:What should I do?
If you have FTP, or file manager access plus database access via a tool like phpmyadmin, I would ditch their 1-click installation and install serendipity yourself. I had to do this many years ago with godaddy.
=Don=
Post Reply