Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 797 forks source link

Publicize: Add custom templates #261

Open kraftbj opened 10 years ago

kraftbj commented 10 years ago

We could add an additional option under Settings > Sharing, allowing you to customize all Publicize excerpts at once, with the use of template tags, like we do today for custom services in Sharedaddy.

Here are a few examples:

Suggested by users in: https://twitter.com/walkenfan/status/291950686277627904 http://wordpress.org/support/topic/featured-image-of-post-not-showing-up-when-publicized-to-facebook?replies=23#post-3467643 http://wordpress.org/support/topic/publicize-custom-post-text?replies=3#post-3556200 http://wordpress.org/support/topic/feature-request-33?replies=1 http://wordpress.org/support/topic/any-way-to-use-tags-when-posting-an-entry-to-facebook-twitter-etc?replies=1 http://wordpress.org/support/topic/share-on-twitter-feature-request?replies=2 http://wordpress.org/support/topic/publicize-add-automatic-title-hashtag-for-twitter?replies=3#post-4494444 http://wordpress.org/support/topic/jetpack-publicize?replies=1 http://wordpress.org/support/topic/publicize-setting-text-auto?replies=1

Ported from https://plugins.trac.wordpress.org/ticket/1785

jeherve commented 8 years ago

I only need to send a domain maped URL to Facebook

I'm not sure I understand. Could you give us more details about what you'd like to achieve?

davidsword commented 8 years ago

example.com wp network has a /SiteA/ site which is domain mapped SiteA.com

When SiteA.com submits a post, ideally the editing template would remove all text and allow just sending the %U (whatever the tag for url is). Ideally template would be editable to send only pretty url SiteA.com/blog/new-post/ which'd suffice (as the meta tags would take care of the title and description).

I used snippet for "add tag" postmeta alteration from your blog I think (thank you for that btw)_ , to blank everything out, and just send the default url: example.com/SiteA/?p=123 - but it's very far from SiteA.com/blog/new-post/ that'd ideally be the only thing that sends.

This post kinda touches on two issues: editable template so can send only URL, and domain maps URLs being sent. sorry to hijack.

jeherve commented 8 years ago

just send the default url: example.com/SiteA/?p=123 - but it's very far from SiteA.com/blog/new-post/ that'd ideally be the only thing that sends.

That's actually a known Jetpack issue; Publicize should indeed send pretty URLs by default. That's something we're working on fixing. Until then, there is a work-around: Could you go to Jetpack > Settings in your dashboard, and enable the WP.me Shortlinks module? That will force Publicize to use pretty URLs (not default shortlinks, nor WP-me shortlinks).

jeherve commented 8 years ago

Also reported here: https://wordpress.org/support/topic/publicize-point-to-custom-url?replies=3&view=all#post-8347998

ChrissiePollock commented 8 years ago

Publicize customization requested in 2680038-t

jeherve commented 8 years ago

Also suggested here: https://wordpress.org/support/topic/how-to-show-only-post-title-and-link-in-facebook-with-publicize?replies=1&view=all

rachelsquirrel commented 8 years ago

Another request #2689801-t

chaneswin commented 8 years ago

Is it possible to add different GA utm parameters in URLs when publicizing to different social media?

lamdayap commented 8 years ago

Requested here #2741723-t

ntpixels commented 8 years ago

requested in #2744758-t

jeherve commented 8 years ago

Also suggested here: https://wordpress.org/support/topic/publicize-is-adding-about-50-words-on-top-of-post?replies=2

jeherve commented 8 years ago

Also suggested here: https://wordpress.org/support/topic/how-to-limit-the-words-or-characters-displaying-as-descrtiption-into-fb-post?replies=1

jeherve commented 8 years ago

Also suggested here: https://wordpress.org/support/topic/publicize-remove-description-from-fb-and-g-by-editing-the-template?replies=1

csonnek commented 8 years ago

Requested in 2780703-t

jeherve commented 7 years ago

Also suggested here: https://wordpress.org/support/topic/jetpack-posting-to-facebook-with-xx-more-words/#post-8179626

jeherve commented 7 years ago

Also suggested here: https://wordpress.org/support/topic/publicized-post-on-facebook/

davoraltman commented 7 years ago

Also suggested in 2948339-t

RCowles commented 7 years ago

Requested in 2969185-t

RCowles commented 7 years ago

Requested in 2980966-t

jenhooks commented 7 years ago

2988996-t would like to edit [...more words]

jeherve commented 7 years ago

Also suggested here: https://wordpress.org/support/topic/trouble-understanding-the-customizing-publicize-message/

mattewre commented 7 years ago

I would like to have customization too.

jeherve commented 7 years ago

Also reported here: https://wordpress.org/support/topic/post-content-11/

jeherve commented 7 years ago

Also suggested here: https://wordpress.org/support/topic/custom-publicize-by-platform/

jeherve commented 7 years ago

Also suggested here: https://wordpress.org/support/topic/want-to-stop-sharing-full-content-on-facebook

jrmain commented 7 years ago

Should we be worried that some (or all) of the features people have been asking for in this thread are going to be in the Pro/Premium versions only? See https://jetpack.com/2017/02/22/share-it-again-new-social-media-features-for-premium-and-professional-customers/

jeherve commented 7 years ago

@jrmain While Premium and Professional Jetpack users can now use Publicize as many times as they'd like thanks to the new options available on WordPress.com, we haven't worked on the main feature discussed in this issue: the ability to customize the default Publicize message used for all your future Publicize posts thanks to a templating system. The Custom sharing button option is a good example of such a templating system.

This templating system allows you to build a link based on predefined placeholders. Ideally, we would build a similat system allowing you to build a default Publicize message based on predefined placeholders.

I hope this clarifies things a bit!

jrmain commented 7 years ago

It does, thanks.

lnwills commented 7 years ago

A work around for the time being is creating an applet on ifttt.com, which is free to use.

1 - applet 2 - fb post

jrmain commented 7 years ago

With recent changes to Publicize, the problem has worsened for me. Now Publicize insists on posting an image that I don't want it to use, and the only way to get rid of it is to delete the post completely. So I'm now looking at alternatives, such as the IFTTT method outlined above. Thanks for that, Inwills!

lnwills commented 7 years ago

No problem jrmain. Also, you may want to look into installing Yoast SEO if images you don't want to use are populating for your post. I had the same issue and for anything I was trying to post my sidebar images were being used. Apparently, the og:image tag that FB uses for capturing images for post tends to get messed up somehow.

jeherve commented 7 years ago

Also suggested here: https://wordpress.org/support/topic/how-to-remove-excerpt-and-link-when-article-published-on-facebook/

jeherve commented 7 years ago

Now Publicize insists on posting an image that I don't want it to use

@jrmain As @lnwills explained, when you share a post on Facebook or when Jetpack Publicize publishes a post to your Facebook page, Facebook crawls the page and looks for Open Graph meta tags in the head to build a complete post preview (with an image, title, description, ...).

Jetpack automatically creates these Open Graph Meta tags for you unless you already use another Open Graph plugin, in which case we let the other plugin handle things. You can see what Facebook sees by entering one of your posts' URLs in Facebook Debugger: https://developers.facebook.com/tools/debug

If you use Jetpack to generate those Open Graph Meta tags and experience issues with the images picked in your post previews, could you contact us and give us a few examples so we can take a look?

jrmain commented 7 years ago

@jeherve Understood. I'm using another plugin to set up the Open Graph meta tags, because I wanted to have some control over them, which Publicize currently doesn't provide.

When I let Publicize post an article from my Wordpress site to Facebook, I get the issue that originally led me to this thread, which is that the article content appears twice (also happens on Google+). I was able to fix that by editing the post on Facebook (and Google+) and removing the duplicate content, but it made me wonder why I was using Publicize at all.

When I post a link to an article manually on Facebook, the result is fine. No extra content, and no spurious images. And it also looks fine in the Facebook Object Debugger.

Since the recent Publicize updates, I now also get an unrelated image from the site's sidebar in every post. The only way to fix that is to delete the post, so again, I'm wondering whether Publicize is really saving me any time.

I've been holding out hope that you'll add functionality to Publicize that allows me to customize what it spews at Facebook and Google+.

jeherve commented 7 years ago

the article content appears twice (also happens on Google+).

We're aware of that bug with Google+, but I can't seem to reproduce on Facebook. Could you contact us via this contact form and give us some examples, so we can take a closer look?

I now also get an unrelated image from the site's sidebar in every post.

I'd recommend checking your site's Open Graph Image Meta Tags; they're the only thing that controls the look of your post previews on Facebook. If the og:image tag is properly set and Facebook ignores it, it's most likely because the image isn't available when Facebook crawls your site after the post was published and looks for that image. You can confirm this by looking at your site's raw access logs around the time when the post is published. You'll see Facebook's bot accessing your site in the first few seconds after the post was published, and you'll be able to see if it gets any errors when trying to access the image provided as og:image.

I've been holding out hope that you'll add functionality to Publicize that allows me to customize what it spews at Facebook and Google+.

Yes, that's what this issue is about. We'll update it as soon as we get to it!

jrmain commented 7 years ago

I'd recommend checking your site's Open Graph Image Meta Tags; they're the only thing that controls the look of your post previews on Facebook.

The Open Graph image tags (e.g. og:image) are not set; there's no relevant image. Facebook complains about that, and yet when I manually post a link to the same article on Facebook, there's no image, which is what I want, and what makes the most sense, at least to me.

You'll see Facebook's bot accessing your site in the first few seconds after the post was published

I understand that Facebook ingests the source page when a link is posted to Facebook, regardless of the mechanism used. When Publicize does it, I get a spurious image; when I post directly on Facebook, I don't get an image, which is what I want, and that's also what I see on Facebook's Object Debugger.

jrmain commented 7 years ago

Could you contact us via this contact form and give us some examples, so we can take a closer look?

Done.

grappler commented 7 years ago

This would be useful for WordCamps too so that they include their event hashtag in the tweet instead of having to change it manually for each post.

seejacobscott commented 7 years ago

Request for ability to edit the URL to use custom taxonomy when publicized: 3232999-t

lamdayap commented 7 years ago

request to remove URL's completely: 3240351-t

jeherve commented 7 years ago

request to remove URL's completely: 3240351-t

This is tracked in #5384

lschuyler commented 7 years ago

Requested in 3262683-t

snowmads commented 7 years ago

Requested in 3311763-t

lschuyler commented 7 years ago

Requested in 3321535-t

xavivars commented 7 years ago

On one side, it's amazing how you guys keep track of every single request about this issue (and it has more than 90 comments!!!).

But it's also incredible to see how, after three years and so many requests, something that can be easily done with IFTTT or other plugins (heard about Nelio Content?) is impossible with Jetpack.

😥

abcxyz-m commented 7 years ago

636401-zen --

lamdayap commented 7 years ago

659356-zen requested for an option to remove the excerpt altogether and just show the image.

lamdayap commented 7 years ago

Another request to remove the URL when Publicized: https://wordpress.org/support/topic/is-possibible-hide-post-url-in-publicize/

lamdayap commented 7 years ago

684278-zen (request to take out thte xx more words

StefMattana commented 6 years ago

Another request here: 714493-zen