How to access friends email details via graph api - html

Is it possible to get the friends "email address" using graph api ?

I am not totally sure, but as a measure of spam prevention I don't think Facebook makes this accessible without the permission of your friend.

Yes, have them authorize your app. Otherwise, nope not possible. Make it so your app is so cool and entertaining that they cannot resist giving up such personal information as their email to partake of your app.

yes and no. If you take a friend's "username" and append #facebook.com, you have an email address that you can use to send a message. However, this message will not arrive as an ordinary facebook message in the receivers "Inbox", but it will be sorted into the "Other" Messaging folder.

Related

How can I access a user's email with my chatbot?

I'm making a Hangouts chatbot for my company, and one of the things we need to do is retrieve a user's email address. The API guide says that chatbot should be able to access this information without any additional permissions or API's, but I can't find out how to do it. I can get the user object from the event, but from that I can only get displayName.
Thanks
It turns out you can access an email with event.user.email
Doesn't say that anywhere in the documentation but whatever...

google hangout chat can bots message bots?

I have a use scenario where I'm testing a bot in google hangout. To facilitate testing of multiple users, I'd like to create a series of other bots that replicate the functions of users. But this is all dependent on the bots in the room listening to one another. It also requires that I get the userid of the bots so they can name each other. In Google Scripts I can find no way to retrieve that (the rest API is not an option).
Any suggestions?
The information is documented, but I understand GCP docs aren't the easiest to navigate. According to the Event Format reference: "Only messages from "real", non-bot users are delivered to bots. A bot will never receive messages posted by itself or by a different bot."
So the answer to the question appears to be no. Bots do not appear to be able to talk to each other. When you put the userid in the text property of the bot it does not replace it to an #botname as it does with human users. If anyone can figure out another way to do it I would appreciate it.
But the second question of where to get the bots userid I can now answer and I leave here in case anyone else is curious. This appears only in a message event, when a bot is mentioned as the property event.message.annotations[0].userMention.user.name

How to set up a pre-chat form in Smooch web messenger

I'd like to ask users for their name and email when they open the Smooch web widget, before the chat can be started. Similar to what Frank & Oak does: https://global.frankandoak.com/
I'm not very technical but can find my way around some HTML, CSS and even some javascript. I was hoping someone at Smooch would see my post and provide me with guidance on how to implement this :)
I'd need the name and email to be sent to Front (which I'm using to handle Smooch messages).
I know this might be a lot to ask, but if you find the time to help me, you can then add the answer to your documentation, which would be really cool for non-technical users like me.
Cheers!
From Smooch Web Messenger FAQ
How can I capture user’s info before starting the conversation with the user on the web?
You can create a form on your website and pass us the info in Smooch.init().

user email in About service

I need to get the user email when I get document permissions. I have seen this problem here
value attribute for Permissions Resource not populated in responses
but in about service does not appear my email. I need it because I have a service account and my application need know the user email. I want to avoid call to profile service.
Is this possible? from where I can get the user email?
Thanks.
As you rightly say, you will have to make a call to the profile service. In some ways it is better like this, because it separates the concerns of the Drive API and the Profile API, and can use specific scoping to let the user know exactly what they are authorizing your app to do.

Facebook OAuth getting only email, possible?

I'm busy to enable login stuff via facebook oauth on my website, but the only thing I want to get is the email of the user.
I saw in dev docs the 'scope=email' but, it seem's mandatory for the user to allow access to anything about him.
is there's a way to ask him to grant access only on his email ?
No. The bare minimum that your app will request from the user is his Basic Information, followed by your extended permissions (in your case, his email address).
nope. email is a so called extended permission. so you have to get the basic set of data of the user. (like: name, fbid, gender, locale).