Is there any way to retrieve a user's chat history in hangouts? - api

As developers, we can get a user's mails from Gmail (provided the authorization). Is it possible to get hangouts chat history? How?

This depends on whether chat history is enabled for the account. For Google Apps accounts, chat history can be enabled or disabled from the Admin console. If it is a regular Gmail account, then the it should be saved as any other email is. It will not end up in your inbox but if a user was chatting with "John" for example, you can search chat history by searching for mail from "John". Then emails and chat history are displayed.

Related

How to completely remove Chat Bot created by Chat API?

I created test Chat Bot two month ago using Chat API and service account and used it.
Then I disabled the bot and remove Chat API from the project. But I still can find this bot in the Chat by the name. It has status Disabled but exists.
Is it possible completely remove it from G Suite domain available bots?
Disabling the Chat API should remove the bot from Hangouts Chat. Do you still see it after refreshing Chat or deleting your cache?

Hide Facebook customer chat plugin if user is not logged it

I'm trying to hide the Facebook customer chat plugin when the user is not logged in into Facebook.
I've looked at the API here https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin/
But this method doesn't seem to exist. However I can change the message If the user is not logged in.
Can I somehow listen to that and then hide it?

hangout chat api with personal gmail account

I am trying to create a chat-bot with Cloud Functions and Hangout Chat API as part of POC.
I am using my personal gmail & google cloud account for this.
I don't have any GSuite Account.
I enabled the Hangout Chat API on my google clodu account, but while configuring I can see this error on Configuration Tab:
The API "chat.googleapis.com" doesn't exist or you don't have permission to access it
Tracking Number: 6680123491503244043
Can I use Hangout Chat API without GSuite Account ? If yes then what this error means ?
No you can't. Only gsuite users can. May be in future they will open this feature for all. So if you have a gsuite account then so can follow this blog.
https://rominirani.com/tutorial-write-a-hangouts-chatbot-powered-by-google-cloud-functions-890db447bceb

How can I launch facebook messenger with to enable user to user chat

Users log into my app through the facebook sdk. If one user clicks on another user I'd like to enable them to chat via facebook messenger. I can launch messenger from my app, but is there a way to launch into the chat screen with a specific user.
You can open a conversation in Messenger with deep links:
http://m.me/{user_name} <- this is official link for Messenger. You'll need to ask user for his Messenger's username.
fb-messenger://user/{user_id} <- this link is not documented, so it can break any time (Deep linking). user_id probably is the Facebook User Id, so it will be easier to obtain, however you'll need to ask for user_profile permission to get user id (Messenger Permissions)

Set email with non-Gmail domain as primary in Google Developers Console

I want to use Google as OAuth provider for my web site. So I created a new project in Google Developers Console. There under "Consent screen" I wanted to set the email address my users can see when logging in to my company's non-Gmail address.
However, since this is a drop-down box I can only choose from one of the associated accounts, set in the project's permissions. My problem is that I need to set an email address that does not belong to Google, nor do I have a Google Apps account.
So my question is: Can I set a non-Gmail email address in a Google project, even if that domain is not in Google Apps?
You will have to register an account at google developer with your non-gmail address first. And then go to Permissions in the Google Developers Console, add a Member with the non-gmail account as owner. After that you will be able to select the non-gmail email address in Consent screen.