Google Hangouts in my website as a chat/messaging system - php

I currently have Google OAuth 2.0 for authentication. Next I want to be able to use google hangouts in my website so users can chat with each other, along with showing their contact list. So basically I want it to look like how it is on gmail but on my website for hangouts. Main reason for doing this, I want my users to be able use hangouts as a mode of communication. Please let me know if this is possible and provide the necessary resources, an example/demo of this working would really be helpful.

Im afraid there's no API at the moment available (nor plans for that) to access the text chat feature of Hangouts.

yes, you can. More information about google hangouts API here https://developers.google.com/+/hangouts/getting-started

Related

How to add an event to other person's Google Calendar with PHP API client?

I am working on a web application with a build-in agenda. I want to add the items that have been added in this build-in agenda, to the user's Google Agenda. But there is one thing I am wondering. How to get access to that user's Google Agenda?
I was able to get access to my own agenda by adding the XXXXXX#developer.gserviceaccount.com email to the list of addresses that have access to my agenda. But asking everyone to do this isn't really user friendly.
So does someone know the best way to request access to another person's agenda so I can add events through the Google PHP API client?
Thanks in advance!
Consider using Oauth tokens. See https://developers.google.com/accounts/docs/OAuth2
and https://developers.google.com/google-apps/calendar/auth

Simple SSO system like Google Identity Toolkit but without the locked UI?

The Google Identity Toolkit is awesome. So clean and easy to set up! Trouble is, it forces you to use its UI, which isn't working for me. Is there anything else out there that will let the visitor click a GMAIL or YAHOO Mail icon to trigger an OpenID (or oAuth2) request, without hijacking the interface?
I've already implemented Facebook Logins in my site, which lets me customize the sign-in button however I want. For example, here's my current sign-in menu (with PHP/AJAX/MySQL site authentication for those who don't want to use their Facebook/etc. account to sign in):
Clicking FACEBOOK triggers the Facebook JS SDK for the login. Simple enough. I just want a GMAIL logo and YAHOO logo below it.
Any suggestions?
If you want to avoid the UI of a high level library, you're going to have to use a lower level library. In particular, you're going to need an OAuth 2 library. There's not that many of them (surprisingly), but your best bet is likely going to be the one authored by google: http://code.google.com/p/google-api-php-client/wiki/OAuth2
If you're looking for a solution that allows you to leverage all of the APIs for the major ID providers, you might want to test out Janrain Engage.
Here's a quick lowdown on our Engage API endpoints (specifically, auth_info), for social authentication:
http://developers.janrain.com/documentation/api/#Engage
You can have complete control over the UI and display just Google and Yahoo.
http://janrain.com/products/engage/ (for marketing-ese)

Logging in to other wesites using Facebook Account

I am developing an advertisement site in PHP, the user can only list there products by logging in using there account in the site. Also i need to have another option for users to login into the website using there Facebook account and hence advertise about their products. How can i implement? Do i need to create any application instance in FB for this? I am looking forward for valuable suggestions.
Create an app.
Look into authentication, and see which method (server-side vs. client-side) fits you.
Once you've implemented that, you can make graph api calls. https://graph.facebook.com/me gives you the user's basic details
Good luck.

how to collect contacts from different accounts

so i was wondering this: for example: when you subscribe to Facebook you have the option to invite your friends from gmail(if you have a gmail account), so you would enter your gmail login and password and facebook would grab all your contacts from gmail, so i was wondering how this is done? is there an API from Gmail or from Hotmail that permits to program this?
thanks
These sites don't use an all-encompassing API, they take your login you provide and from their side login to Google (for example) as you and scrape it for your contact info.
This is why you should also be very careful about who you trust with that login information.
yes .There r different API's for all of these.you can download them by simply typing contact fetcher script in Google or something like this. They r free.
refer link https://sourceforge.net/projects/contactgrabber
There might not be an API specifically for it, but it's still pretty easy. I did something similar with PHP, using CURL to log in to a website and download reports automatically.
edit: You should be aware that some sites won't like that you do it, and might sue you for it. Always get a permission from the site owner before you try it.

How do I invite people from MSN, Yahoo into my application?

I need to add an invite users functionality to my social networking application so users can invite contacts from their hotmail or yahoo accounts. How do I do this and are there any free open source libraries that do this?
Depending on the service you wish to get the contact information from they might already provide a published API for you.
For example, Yahoo has a contact list API you could use: http://developer.yahoo.com/social/rest_api_guide/contact_api.html
Google also has one: http://code.google.com/apis/contacts/
And so does Windows Live: http://msdn.microsoft.com/en-us/library/bb463974.aspx
If you need something to work with a service without an API then you might have to ask that user for his username and password, use it temporarily to log into his account, download the contact information and then discard the login details. There are obvious privacy and security issues with this approach, however. Nevertheless, it is used quite frequently by many social networking sites.
The same approach can also be used to retrieve buddy information from instant messaging services. You log in (perhaps using an open source IM API) and get their buddy list and contact details.
Just in case anyone was interested - I would like to share this neat piece of code I found off the web. Its free and very easy to setup and integrate. http://openinviter.com is php based and you can extract email contacts from just about any address book there is.
You just need to have curl set up for this.

Categories