search

Home  >  Q&A  >  body text

javascript - Are the parameters of the WeChat public account development sharing to friends and sharing to friends functions invalid?

  1. I recently encountered a problem. The sharing to friends and sharing to friends functions developed using WeChat’s jssdk interface. Now all the sharing links set are invalid, and they are displayed in the dialog box with friends after sharing. The content is also wrong. Our code has not changed. After testing, we found that both wx.onMenuShareAppMessage and wx.onMenuShareTimeline can be entered into the success method, but each parameter such as title, desc, and link passed in does not work. All have become the default parameters (such as the title and link of the current page)
    It happened around 10 o'clock in the evening on April 28, 2017. Suddenly, all the jssdk interfaces used by our application to call WeChat failed, and then passed It returned to normal in about half an hour, and then the problem occurred that all the "Share to Friends" and "Share to Moments" parameters were invalid

  2. Screenshot
    2.1 Code for sharing with friends and sharing to Moments

2.2 Previous normal sharing results

2.3 Current sharing results

  1. Attached are the sharing results of other public accounts. It seems that there are also problems. It seems to be a problem with the WeChat interface, but I sent an email to the problem feedback email address under the WeChat jssdk introduction document, but there was no reply

PHP中文网PHP中文网2754 days ago725

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 13:35:07

    Answered similar questions
    /q/10...
    /q/10...

    If you are sure there are no other problems:
    Please confirm link 跟安全域名是同域名的吗?

    WeChat’s development documentation has three versions

    1. https://mp.weixin.qq.com/wiki...

    2. https://mp.weixin.qq.com/wiki...

    3. https://mp.weixin.qq.com/wiki

    . . . . . . . . . The third version specifically pointed this out, the first two did not

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 13:35:07

    There is still a solution. I changed several projects on the server for this crap

    reply
    0
  • 为情所困

    为情所困2017-05-16 13:35:07

    It can be regarded as a supplement to the above.

    Don’t be 13-faced on WeChat, the rules have been changed. The WeChat authorized link cannot be included in the sharing link, and the sharing link must be naked.
    And the domain name must be the same as the js secure domain name (this should be guaranteed)

    My problem is because I added the WeChat authorization link outside the sharing link. It was originally to avoid losing the parameters after page redirection because the WeChat code could not be obtained. Now it seems that I can only process it again. Parameter problem.

    Note: Some adjustments to the WeChat jssdk interface document:

    1. js file version upgrade

    1. Adjusted description for sharing with friends (same for sharing with Moments)

    reply
    0
  • Cancelreply