Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to achieve app content sharing to WeChat friends circle?
Started by 284672641 Jun 30 2018 01:36 AM

16 replies to this topic
sharing
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

I'm trying to do a app, and then I'm promoting in app to share the WeChat circle, I look at the relevant documents, and WeChat provides the API interface, but it seems that only Android's Java writes, and IOS's Object-C or Swift is written, and anyone knows how our Lua implements these functions? Or do you have a written interface? Plug-in unit?



[TOPIC: post.html]
#2

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

Can anyone tell me the clue?

[TOPIC: post.html]
#3

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

Can someone tell me how to do it?

[TOPIC: post.html]
#4

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

I want to share my app content with WeChat friends circle.

[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,578 posts
  • Corona Staff

Please only bump your post once per day (wait at least 24 hours before you ask for additional help).

 

What is WeChat? 

You say they have an API. Can you provide a URL where community members could see what they offer?

 

We have a saying around here:  "Help us help you" which means provide us with enough information to provide a meaningful answer for you.

 

Rob



[TOPIC: post.html]
#6

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

Well, WeChat is a social software like Facebook or Sina blogs, line and so on. Open a web page like Google with Safari browsers, then click on the bottom of the safari browser, and select the corresponding social software to share the content of the web page, the corona can browse the web page, and how to be like safari. The browser shares the content to other social app. I read API only to see Facebook share. If it's other social software, what should I do?

Attached Files

  • Attached File  1.PNG   220.99KB   0 downloads
  • Attached File  0.PNG   852.56KB   0 downloads


[TOPIC: post.html]
#7

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

Sharing process

Attached Files

  • Attached File  3.PNG   74.98KB   0 downloads
  • Attached File  2.PNG   237.34KB   0 downloads


[TOPIC: post.html]
#8

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

Sharing process

Attached Files

  • Attached File  4.PNG   45.47KB   0 downloads
  • Attached File  5.PNG   338.08KB   0 downloads


[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,578 posts
  • Corona Staff

For iOS apps, there is a plugin called the "Activity" plugin that shows the dialog box when you tap the sendTo button. If the user has WeChat installed, it will show in the dialog automatically.  See:

 

http://docs.coronalabs.com/plugin/CoronaProvider_native_popup_activity/index.html

 

Rob



[TOPIC: post.html]
#10

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

I saw the one you said, and then I saw the following support. I want to ask, in addition to these listed shares, I want to share with other social apps, such as the WeChat mentioned above, QQ, etc. Is a third-party share access URL of WeChat:
Https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=1417694084&token=&lang=en_US,
The following picture is his example. Can Corona share WeChat?

Attached Files

  • Attached File  222.png   12.42KB   0 downloads
  • Attached File  3333.png   35.33KB   0 downloads


[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,578 posts
  • Corona Staff

Apps that accept input from the Activity popup automatically register themselves with the dialog. There isn't anything from the Corona side that you need to do (or can do). In fact I did a test. I installed WeChat and it works. However you have to do some setup on your iDevice.  First, I setup a simple button/tap handler in my Corona built app:

Attached File  IMG_4195.PNG   95.78KB   0 downloads

Then tap the button and the activity dialog shows:

Attached File  IMG_4196.PNG   248.9KB   0 downloads

Then scroll to the right and hit the "More" button

Attached File  IMG_4197.PNG   225.07KB   0 downloads

Scroll down until you find WeChat and turn it on

Attached File  IMG_4198.PNG   223.35KB   0 downloads

Press done and WeChat has been added to your iOS Activity dialog.  At this point, nothing is Corona specific.

Attached File  IMG_4199.PNG   254.56KB   0 downloads

Then code wise I just copy/pasted the example code for "Combined Items", changes the name of the image filename. I did get a weird error from WeChat if I just tried to send a string. But some combination of Image and URL has to be sent with it, but I didn't dig in to find out specifically which one.

 

Rob

 



[TOPIC: post.html]
#12

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

Thank you for your answer. I feel that I am further away from what I want. Can you tell me where "Combined Items" is, or give me your demo? I will try it out with the information I have now. Thank you very much for what you are doing.

[TOPIC: post.html]
#13

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,578 posts
  • Corona Staff

I took the code from the documentation:  http://docs.coronalabs.com/plugin/CoronaProvider_native_popup_activity/showPopup.html#combined-items

 

Rob



[TOPIC: post.html]
#14

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

Thank you, you are my god, I am using this project to use the verification code identification. The method I am currently using is to send the verification code to the third party service identification and return it to me. It takes 1 cent / once, demand Not small, the cost is a bit high, I would like to ask if there can be plug-ins or functions can save me part of the cost, the verification code looks like the following:

Attached Files

  • Attached File  yzm.jpg   1.52KB   0 downloads


[TOPIC: post.html]
#15

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,578 posts
  • Corona Staff

I'm not sure I'm following what you're doing with verification codes. Corona doesn't have anything in this area. You might want to look at either the GameSparks or PlayFab plugins to see if they support such things. 

 

Can you explain what you do doing, what service you're trying to use? Maybe some community developers will have some ideas.

 

Rob



[TOPIC: post.html]
#16

284672641

[GLOBAL: userInfoPane.html]
284672641
  • Enthusiast

  • 83 posts
  • Corona SDK

Ok, there is a client who takes a website to ask me to make an app based on the content of the website, but the person who wrote the website has no contact with him, which means that the background interface cannot be provided to me, I will simulate the operation from the front desk, and the website user logs in. In addition to the account password, I need a verification code, and then I went to the above. I sent the verification code image to a third party for identification and returned it to me. Now I think, is there a plugin or a way for me to identify it locally? This verification code is issued, thereby saving the cost of the customer.

[TOPIC: post.html]
#17

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,578 posts
  • Corona Staff

Web forms usually conform to the standard HTTP POST Multi-part MIME standards. That is, you can look at the web page's (where the form exists) source code, determine what web script they are calling when the form is submitted, get the various field names and rules and construct a similar form using native.newTextField, widgets, etc. and use network.request() to call the server-side script when you're ready to submit the form. You can also figure out what they are doing to get the CAPTCHA/verification code and probably get the code by using network.download() or display.loadRemoteImage().

 

Rob




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: sharing