call back after google plus share button - google-plus

i am implementing google plus in my application. i wanted to implement a callback function after the message was shared by a user. please let me know whether it is possible or not to implement callback after clicking on share button in google plus.
Thanks in advance
pratap

There are actually two possible callbacks available by setting the share tag attributes or by setting parameters in a call to gapi.plus.render. The function specified by onstartinteraction is called when the share bubble pops up, and the function specified by onendinteraction is called when the bubble closes.
See https://developers.google.com/+/plugins/share/#sharetag-parameters for further details.

Google+ Share buttons do not support callbacks. There is an open feature request to add this functionality. Star it to show your interest but please do not add "+1" and "Me too!" comments.

Related

I need to make a callback widget for my website. How can I do it?

I have a lending website for selling stuff and I need to make a button which a client can click and the system should call them and connect to my support team. I made some research and found that Voximplant provides this functionality, but I can't figure it out. Anyone has some working solution?
You can use the Programmable callback template in the control panel:
https://manage.voximplant.com/marketplace/call-back

How to add sign in to {x} with Google elegant pop-up on top-right corner

Sites like https://streeteasy.com/ and https://www.geeksforgeeks.org/ incorporate the same UI that allows you to log-in using Google Auth with one click. The photo below shows an example.
Since many sites have this identical UI, I assume there is some Google/Firebase mode, but I do not see documentation related to this.
Perhaps this link in the html provides some help in figuring this out? ux_mode=popup I am familiar with, but ui_mode=card I am not. https://accounts.google.com/gsi/iframe/select?client_id=388036620207-3uolk1hv6ta7p3r9l6s3bobifh086qe1.apps.googleusercontent.com&ux_mode=popup&ui_mode=card&as=al2HYo2TiehJpHITNY8fJQ&channel_id=9384f02a26b236ce29c0acab5000e8c656b9bbfb3202c094cd65f92e2468d6a3&origin=https%3A%2F%2Fwww.geeksforgeeks.org
This UI use "One tap sign-in and sign-up" of Google. Is very easy, the URL with complete integration and implementation is:
https://developers.google.com/identity/one-tap/web/guides/get-google-api-clientid
I found the solution in
Documentation for the automatic "Continue as" Google popup

Facebook messenger API bot : "Typing bubble" " indicator bubble"

I've created a messenger bot, and some action that I perform can take some time. So in order to make the user wait I would like to display the "Indicator Bubble" (the one you see when the people you talk with are typing):
Typing bubble
It is not defined in the Messenger API documentation how to do it, but it seems possible has they perform it when you hit "callBack" on their card.
How can I simulate this?
It's now available into the messenger bot API via the Sender Action. You can find the documentation here.
It's just a post with an on or off value to display / hide the bubble indicator.
{
"recipient":{
"id":"USER_ID"
},
"sender_action":"typing_on" // typing_off
}
The official messenger API does not support this feature for now. Even if #hiponcho – one of the featured by Facebook chatbot is actually using it.
A workaround would be to use the unofficial messenger API, which has a method called sendTypingIndicator that does exactly what you want. But be careful, you can be banned for using of non-official API.
api.sendTypingIndicator(threadID, [callback])
Yes, it is the only way.
When you have the Button Template and someone clicks on "button" for "postback" (documentation in section "button template").
Then during your parsing of the message and sending answer, it is shown like "writing".
I know it is a hack, but currently I send the "Typing Bubble Indicator" as a animated gif as my first reply, if I anticipate a waiting time (like an API call). At the user end, you can't tell the difference.

How to get response from google share api.?

I am using a google+ share button. It is working fine and content is also shared successfully. But I want to generate notification on successful share and the same for error.
For that I need response of google+ share. If anyone have idea how to get response from google+ share api, Please share. Thanks for your help.
The Google+ Share button does not offer a mechanism for detecting the sharing of a post for the web. The onstartinteraction and onendinteraction parameters are triggered on the hover events in case you need to listen to those for other events.
The +1 button does offer a callback but that isn't used for detecting a share from the button but rather a +1. Also, you need to be careful to ensure that you follow the Google+ button policy.

Post Screenshot of APP to wall

How would I make a button that when clicked the user of the app will be posting a screenshot of the canvas page they are on and have it posted to their wall? And maybe add some comments with it as well.
you would have to require the user to add some additional plugin to their browser. There are many plugins that do this - for example clipboard.com provides this functionality.
To the best of my knowledge, these extensions actually make a request themselves (in the back-end) to the url you are currently on and takes the screenshot from that url on the actual server. From there it can be shared and commented on.
However with out some external utility I don't think this functionality is possible.
hope this helps...