Share the link under each person once likes

Source: Internet
Author: User

Now need to do such a project, in the app side to share links, QQ space, Weibo and other places, share links in a bit like the function, each user can only one picture to praise once.

  • In the built-in browser, you can use Snsapi_base to get the user's OpenID to determine if the user has been liked. Http://mp.weixin.qq.com/wiki/17/c0f37d5704f0b64713d5d2c37b468d75.html
  • But in order to share, QQ space, microblogging and other places, so that the need for different applications for a variety of different judgments. Allison told me something called Localstorage local storage. When users like it, they now determine whether they can be liked based on what is stored in localstorage. This solves the problem of judging whether or not to praise the point. However, if the user clears the cache, the localstorage is not valid.

Write your own article good slag slag ... No connotation, plain English, journal. Really should be more technical blog, otherwise, did not forget the things.

Share the link under each person once likes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.