How to create a Google Hangout button for chat-only? - google-api

I added a Google Hangout button to my page following the instructions:
<script src="https://apis.google.com/js/platform.js" async defer>
</script>
<g:hangout
render="createhangout"
topic="cpp11"
hangout_type="moderated"
invites="[{ id : '74838920', invite_type : 'PROFILE' },
{ id : 'my.email#gmail.com', invite_type : 'EMAIL' }]">
</g:hangout>
When I press that button a Video Hangout starts (informaing me I should enable video). I am also not sure if I have the hangout invitee correctly, but I will adress that later.
How to let let a chat-only window open on the button press?

I looked at the documentation and there is no way of doing it.
https://developers.google.com/+/hangouts/api/gapi.hangout.av#gapi.hangout.av.CameraMuteEvent
The only way to do it is to ask the participants to click on the "Turn Camera Off" button on the top once they enter the hangout.

There is an option now:
Use https://hangouts.google.com/chat/person/profileID. The profile ID is a unique ID of the user and can be retreived via People API

I don't think chat/text only functonality is available. Your question has been asked before in more general terms (not specific to Google+ Hangout button):
Hangout (chat only) integration in web page - getting started?
Can Google Hangouts be used for Text Only Live Chat from my WordPress website?
There's not even a way to disable the video by default.
Disable video by default in Google hangout?
I can't find official documentation stating chat only is not possible, but the tag line for Google Hangout Apps is: "Some things are better face-to-face." The APIs also suggests video is really the focus for Google Hangouts.

there certainly is a way. if you visit someone's G+ page you will find a hangout-symbol right below their profile - clicking this opens a chat-window, not a videocall.
https://plus.google.com/u/0/replace_this_with_a_google_id/posts

Related

Adding GA Event code to Joomla {tab}

I am trying to add a Google Analytics event to track if a tab has been clicked on in a page. I am using Joomla 2.5.7 and in the article is has this markup for the tabs extension:
<p>{tab Rates}</p>
This is the tab at the top of the page. I want to add the following universal analytics tracking event code:
onclick="ga('send', 'event', 'tab active', 'click', 'rates');"
to track when someone looks at this tab.
Currently I have only used this onclick event on an anchor, but as using Joomla this isn't working and is just showing up on the page.
Please advise the best place to get this information and how to activate it. Thanks all.

Using Yammer embed to display feeds

I am using Yammer embed to show a group feed on a page in my ASP.NET MVC3 application. I have created a div whose Id is embedded-feed. I am using below javascript code to show a group feed.
<script src="https://assets.yammer.com/assets/platform_embed.js"></script>
<script data-app-id="<<valid app id>>" type="text/javascript">
yam.connect.embedFeed({
container: "#embedded-feed",
network: "<<valid-site>>.com",
feedType: "group",
feedId: "<<Id for feed>>"
});
Upon loading the page, Yammer widget shows up with login button. When I click on login button, it opens up a new browser window and I get a pop up with the message - "The web page you are viewing is trying to close the tab. Do you want to close the tab?" I have already added yammer.com to trusted sites. Please share if you have any thoughts on what am I missing here.
-Thanks,
Add yammer.com to trusted sites in Internet Explorer settings...
uncheck the checkbox to very server security.

Google Hangouts website button

Is it possible to add a Google Hangouts button to my business site that when clicked on initiates a call to me? I have a business website and I would like for anyone to be able to call be like the Skype button that you can embed on your website page does. Problem that I have is I went to https://developers.google.com/+/hangouts/button and read and then went to the Google API Console at https://code.google.com/apis/console/ and turned on the Google+ Hangouts API and then added my Google+ profile and my Project ID (app_id) and entered it into the html markup example(s) and embeded the code into my page and it does show the button, however, when the button is clicked, it launches the Google Hangouts program and asks to invites someone.
I need to this to actually start call me because the customer at my webpage, when they click the button and the Hangouts program launches, they are not going to know what to enter here. Needs to work like the Skype call button does and actually call me.
As always, any help is greatly appreciated!!
-Billy
#Billy I'm not sure what's changed since the other answers here, but I'm actually having some success with this approach :
script(type="text/javascript" src="https://apis.google.com/js/platform.js")
.g-hangout(data-render="createhangout",
data-invites="[{id: 'YOUR_GOOGLE_PLUS_ID', invite_type: 'PROFILE'}]")
Where YOUR_GOOGLE_PLUS_ID is the number (not your vanity id) found in your profile url. Since my google plus url contains my vanity id, I obtained my YOUR_GOOGLE_PLUS_ID easily from the 'profile' link in the left sidebar.
Once clicked, the workflow goes like this :
Visitor clicks the "start hangout" button
the hangout app launches (chrome, android, etc)
they are prompted to join, they click join
they are prompted to invite you to the hangout. they do so.
you are notified to join.
The next problem I'm experiencing is that step five only seems to occur on the Google Chrome hangout Extension and roughly five minutes later in an email. Meaning no notifications on: Google+ Website, Android Hangout App, Android Google Plus App.
So it seems that this particular situation is as solved as it could be from the "integrate into a website" point of view, the remaining issue is most likely a bug with the google-plus/hangout ecosystem itself.
By the way, instead of using a YOUR_GOOGLE_PLUS_ID you can use the email address of that google-plus user :
script(type="text/javascript" src="https://apis.google.com/js/platform.js")
.g-hangout(data-render="createhangout",
data-invites="[{id: 'your.google+email.address#gmail.com', invite_type: 'EMAIL'}]")
Although I'm not sure if this means that notification is via email only.
This was the basis of the process but i couldn't workout some of the code in order to rewrite it fully. adding hangouts button to your website
in another video, there was an element of this which would allow the caller to PAY you for the call/knowle
this one might be helpful too:
hangouts telephone apo
This is now a fully supported feature.
<script type="text/javascript" src="https://apis.google.com/js/platform.js"></script>
<g:hangout render="createhangout"></g:hangout>
See the documentation for more detail: https://developers.google.com/+/hangouts/button.
I asked same question on: How to use Google Hangout / on Air as a "contact me" feature on a website and got an answer that the feature request is under process. The complete answer here:
Currently, there is no API call to provide this functionality. You can see the following feature request: https://code.google.com/p/google-plus-platform/issues/detail?id=678
The feature request was accepted on the 8th of December 2013 and knowing how feature requests tend to work, I'd expect it sometime between now and 2017.
I so want this too, however a middle ground I'm finding is,
Add a Google Hangout button to your page https://developers.google.com/+/hangouts/button
Write your obfuscated Hangout Address next to it, http://www.fingerlakesbmw.org/main/flobfuscate.php
<p>Invite me, hello#dancourse.co.uk</p>
<script type="text/javascript" src="https://apis.google.com/js/platform.js"></script>
<g:hangout render="createhangout"></g:hangout>
Thanks, DanC
You can use this :
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div id="placeholder-div3"></div>
<script>
gapi.hangout.render('placeholder-div3', {
'render': 'createhangout',
'invites' : "[{'id': 'youremail#whatever.com','invite_type': 'EMAIL'},{'id': 'anotheremail#gmail.com','invite_type': 'EMAIL'}]",
'widget_size': 175
});
</script>
You can get it from here: https://developers.google.com/+/hangouts/button#initial_app_parameters for google hangout button.

How can I open the app from the url of calendar like Blackberry travel?

I´m developing an app like Blackberry Travel. In Blackberry Travel, when add a flight, it adds in the calendar. In this event has 'Notes', where appears a url to load the app and see the flight.
I need doing the same, but only the load the app behavior. So, I have two question:
How can I open the app from the url? I saw this but, when I use the sample HttpFilterDemo, when I click in the url www.rim.com that I typed in an event of the calendar, never execute setRequestProperty method.
How can I show 'Open with Blackberry' when I click in the url ?
It´s done!
A perfect example in blackberry developer documentation

Do I need an API key to add a Facebook Like button to website?

I want to show a Like button on some product pages on a website, when a user clicks Like, I want to show the product image along with the link on their wall. Can this be done without an API key?
YOu dont need a API key to add FB like to your website, just copy the iframe code and past it into your HTML.
Check this out for your info:
http://developers.facebook.com/docs/reference/plugins/like/
You can not publish to a users wall without permission to do so. And to get this permission you need an API that the user authorizes.
Also I don't think that a user wants a wall post when simply clicking on 'like'. It will appear on his wall anyway as 'xy likes this'.
I'm a Platform Engineer, you can choose the image and text that gets displayed in the news feed when the user clicks the like button by using Open Graph tags in addition to the like button.
https://developers.facebook.com/docs/opengraph/
I hope this helps!
J

Resources