botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Required help in retrieving facebook username

Open vignestheo opened this issue 10 years ago • 9 comments

Hello Team

How to retrieve Facebook name using BOT Framework in node js?

vignestheo avatar Oct 07 '16 07:10 vignestheo

The "user" object on the incoming message has the user's Facebook name in it.

jameslew avatar Oct 07 '16 21:10 jameslew

How to represent the syntax in coding since I am new to this I am not aware of it. On Sat, 8 Oct 2016 at 2:53 AM, Jim Lewallen [email protected] wrote:

The "user" object on the incoming message has the user's Facebook name in it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/1401#issuecomment-252364516, or mute the thread https://github.com/notifications/unsubscribe-auth/AT5frlFMbPAsdtJ6havRafkzcHeGj1rbks5qxrhjgaJpZM4KQwPC .

vignestheo avatar Oct 08 '16 08:10 vignestheo

@vignestheo does this help? https://developers.facebook.com/docs/messenger-platform/user-profile

danmarshall avatar Oct 12 '16 01:10 danmarshall

Thanks for your response I have a another query How to send messages to only certain users of it matches with some variables as condition e.g. Location is Madurai then I will take their facebook id's and using that facebook id's whether I can send broadcast message to only those users.

On Wed, 12 Oct 2016 at 7:02 AM, Dan Marshall [email protected] wrote:

@vignestheo https://github.com/vignestheo does this help? https://developers.facebook.com/docs/messenger-platform/user-profile

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/1401#issuecomment-253094544, or mute the thread https://github.com/notifications/unsubscribe-auth/AT5froilYfRTnvfXzWlwifkD0KRo-V0Tks5qzDiogaJpZM4KQwPC .

vignestheo avatar Oct 12 '16 04:10 vignestheo

@Stevenic or @maxpert can you comment or close appropriately?

chrimc62 avatar Nov 26 '16 23:11 chrimc62

Sorry for the delay... @vignestheo did you figure this out? unfortunately you'll need to track the address object of every user that contacts your bot and then do your own segmentation based on region. To send a notification you'll then need to do a bot.send() to each user in the given region.

Stevenic avatar Dec 12 '16 08:12 Stevenic

How to do session reset ? and how to clear the session data? and how to do set time out for the particular session

On Mon, Dec 12, 2016 at 2:13 PM Steven Ickman [email protected] wrote:

Sorry for the delay... @vignestheo https://github.com/vignestheo did you figure this out? unfortunately you'll need to track the address https://docs.botframework.com/en-us/node/builder/chat-reference/interfaces/_botbuilder_d_.imessage.html#address object of every user that contacts your bot and then do your own segmentation based on region. To send a notification you'll then need to do a bot.send() to each user in the given region.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/1401#issuecomment-266372111, or mute the thread https://github.com/notifications/unsubscribe-auth/AT5frtOfgwneRiUi2AM_lSSQLdp6z5hTks5rHQkjgaJpZM4KQwPC .

vignestheo avatar Dec 12 '16 09:12 vignestheo

This issue is getting a little overloaded. Could you create a new issue and provide more details about what you're trying to do?

Stevenic avatar Dec 12 '16 10:12 Stevenic

I just went through this as part of BotBuilder v3.8, and I decided to write about the steps here if anyone is interested:)

http://chitrang.me/2017/05/24/facebook-user-name-bot-framework-botbuilder/

chitrang89 avatar May 25 '17 01:05 chitrang89