在FB和LINKEDIN上与页面文本共享TEXT alonsgide吗? [英] Sharing a TEXT alonsgide with a page text on FB and LINKEDIN?

查看:39
本文介绍了在FB和LINKEDIN上与页面文本共享TEXT alonsgide吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚发现在Facebook/LinkedIn上与文本共享文本(井号).这是我要尝试做的事情(主题标签:#STUFF):

I've just stumbled upon sharing a text (a hashtag) togeher with a text on Facebook / LinkedIn. Here is hwat I am trying to do (hashtag: #STUFF):

<li class="facebook"><a target="_blank" href="http://www.facebook.com/share.php?u=<?php echo '#STUFF'. urlencode(get_the_permalink()); ?>">facebook</a></li>

不幸的是,这不起作用(难怪!)FB上有说点什么" 字段.我可以在共享按钮上添加一段代码,以便该字段包含文本(与发送电子邮件的主题"非常相似).

THIS, unfortunately doesn't work (no wonder!) There is "Say Something about it" field on FB. Can I add a piece of code to the sharing button so that field will contain text (pretty much like with "subject" for email sending).

我可以使用Twitter做到这一点.像这样:

I am able to do that with Twitter. Like this:

 <li class="twitter"><a target="_blank" href="https://twitter.com/intent/tweet?text=<?php echo urlencode(get_the_title() . ', #STUFF'); ?>&url=<?php echo urlencode(get_the_permalink()); ?>&original_referer=<?php ?>">twitter</a></li>

推荐答案

虽然我不确定其他服务,但是您可以使用以下格式在LinkedIn上自定义共享文本(请注意,所有 {} 占位符值应替换为URL编码的值):

While I am uncertain about the other services, you can customize the share text on LinkedIn using this format (Note that all of the {} placeholder values should be replaced with URL-encoded values):

<a href="https://www.linkedin.com/shareArticle?mini=true&url={URL to share}&title={article title}&summary={article summary}&source={your app/website name}">Link text</a>

例如

<a href="https://www.linkedin.com/shareArticle?mini=true&url=http://developer.linkedin.com&title=LinkedIn%20Developer%20Network&summary=My%20favorite%20developer%20program&source=LinkedIn">Link text</a>

可以在以下位置找到用于共享内容的完整文档: https://developer.linkedin.com/docs/share-on-linkedin

Complete documentation for sharing content can be found here: https://developer.linkedin.com/docs/share-on-linkedin

这篇关于在FB和LINKEDIN上与页面文本共享TEXT alonsgide吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆