Home > Web Front-end > HTML Tutorial > How is this Sina Weibo sharing function implemented? _html/css_WEB-ITnose

How is this Sina Weibo sharing function implemented? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:55
Original
1363 people have browsed it

Weibo sharing



Question 1: Because the shared content is dynamic, when using the "http://service.weibo.com/share/share.php" page, you need to query the database yourself and then pass in the "url" Do I need to use JS to splice the parameters "title", "source" and "pic" myself? ? ?

Question 2: Is there a js-sdk available? ? ?

Question 3: As long as the sharing box is not needed, there is a demo for the sharing button for reference. Can I share on Sina Weibo if I don’t have a token? ? ?


Reply to discussion (solution)

js splicing and background generation are both possible. Just generate a link and pass the parameters to share.php.

js splicing and background generation are both possible. Just generate a link and pass the parameters to share.php.



You can also use "http://open. weibo.com/wiki/Weibo-JS_V2”, Sina Weibo’s SDK.

Direct splicing should also be possible, after all, it is dynamic data. The ones generated by the Sina Weibo component website may not be reliable.
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template