LinkedIn share-link错误

问题描述 投票:0回答:1

我正在设置自己的社交共享框,但是在使用linkedin共享选项时遇到了麻烦。链接内的内容是通过php传递的,但是我认为我的代码有错误

[当我尝试手动更改share-url内的文章url时,它可以正常工作,但是我生成的链接无法正常工作。

这是我在代码中写的内容:

mini=true&url=<?php echo $url;?>&title=<?php echo $title; ?>&summary=<?php echo $excerpt;?>&source=dfib.net"

这是它在浏览器中的输出方式:

https://www.linkedin.com/shareArticle/?mini=true&url=http://dfib-nieuw.test/attentia-jobsite/&title=Attentia%20jobsite&summary=Hoe%20kan%20je%20deze%20doelgroep%20beter%20aanspreken%20dan%20met%20een%20aantrekkelijke%20website%20die%20alle%20job-%20en%20carri%C3%A8re-info%20overzichtelijk%20weergeeft?&source=dfib.net

我在这里做错了什么?

php wordpress linkedin
1个回答
0
投票

查看您共享的URL:

...&url=http://dfib-nieuw.test....

[.test 不是有效的Top Level Domain,因此无法对此进行测试。

通常,如果要使用测试URL,请使用example.com,例如,该URL对我来说是完美的...

https://www.linkedin.com/sharing/share-offsite/?url=http%3A%2F%2Fwww.revoltlib.com

来源:Official Microsoft Linkedin Share Plugin Documentation

© www.soinside.com 2019 - 2024. All rights reserved.