Search for FB User ID from an Email ID - like in MS Outlook 2010 Social Connect Plugin - facebook

Is there any method to search for FB User ID from email Address ?
Am developing a site where I would like to show the User Profile Pic based on his Email address - if the person is registered and the Profile Pic is made public.
Have tried searching - but am unable to get to any solution - where we can search for User ID - based on Email ID.
It is like how the Social Connect Plugin functions for Outlook 2010.
Thanx !

You can use the following graph API call: /search?q=email#dot.com&type=user
However, it appears this functionality may have a bug in it. See: Facebook Graph API "search" by email suddenly stopped working
The official bug is: http://developers.facebook.com/bugs/292220680814266

The solution is bit tricky now, you can use the friends importer from a Google account, and populate your Google contact via the Google API !
I have setup a bot to to this automatically, but I cannot share it with you, sorry, you have to write ur own^^

Related

Get Facebook user email id for microsoft chatbot [duplicate]

I have a bot that I am building with the help of the Microsoft Bot Framework. I can see that session.message.user.id gives us the user id and session.message.user.name gives us the user name but if I am to connect it with Facebook, how do I get the user's email?
Thanks for your help in advance
The only way is to specifically ask the user for their email and then for example save it in user data in the bot.
Facebook (luckily) doesn't give out users' emails to bots. A normal Facebook app, on the other hand, might get it.
List of available fields: https://developers.facebook.com/docs/messenger-platform/identity/user-profile#fields

Facebook Messenger Platform: how to get user specific information?

I'm trying the recent released Facebook Messenger Platform and so far so good. Everything worked well and I was able to create a echo bot.
But I'm wondering how I could identify this user that started chatting in my page. For example, when a user started chatting I get a PID user (page specific user id).
Making the follow request to Facebook Graph API:
GET https://graph.facebook.com/v2.6/{PAGE_SPECIFIC_USER_ID}
I discovered that I can just ask for the following fields: first_name,last_name and profile_pic.
So my question is, how could I discover if this user is a current customer of my business page? Is there another way of querying more information (like e-mail and real facebook user id)?
Facebook has updated the messenger platform API (2016-07-01) and introduced a new feature called Account Linking. This can be used to identify a user who has created an account on your website via Facebook Login and you can link the two accounts. Facebook login has its own set of permissions which can be used to get a lot more information via Facebook graph API. You can find the complete list here.
Currently, there's no way to do this. The best way would be to prompt the user to enter their information in chat or give them a link to a mobile login page or some other way of linking their account to the chat.
Messenger Platform 2.0 introduce "ID Matching API" ,that will solve the problem.
https://developers.facebook.com/docs/messenger-platform/connecting-accounts
you can retreive a user information like below using fbmq library https://github.com/conbus/fbmq
# this method will occur when a message received from user
#page.handle_message
def message_handler(event):
user_profile = page.get_user_profile(event.sender_id)
print(user_profile) #first_name, last_name, profile_pic, gender ...

Facebook login in classic ASP website

I have a Classic ASP message board (http://yankeedesi.com) where users are required to sign up for posting messages. I want to incorporate an additional functionality to login via facebook. I searched on Google but could not find any good examples for implementing this in Classic ASP. Can anyone direct me to a good source of how to do this?
I don't need any advanced functionality, just the basic login feature. My My user registration currently captures the First Name, Last Name, Email address, Country State and City. Is it possible to pull these information from the facebook profile once the user signs in through facebook and create their login in my database?
I guess this should be possible if you manually implement a so-called "Login Flow". Have a look at the docs at
https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.0
There you can find a step-by-step guide on how to implement OAuth with Facebook.

Facebook: how to retrieve daily email maximum amount through facebook platform

i was trying to find out how many emails could an app send to a registered user through the facebook platform
I've seen the "notification.sendemail" docs and the "admin.getAllocation" docs, i even looked at the settings tabs of my facebook app developer page, but haven't been able to find the way to retrieve the total and daily email amount an app could send.
Could someone please help me out?
That API method is deprecated according to the docs; you should ask the user for their email address ( see https://developers.facebook.com/docs/authentication/permissions/ - email is the one you want ) and email them directly.

I want to use facebook connect in my website to register, login and comment on news articles or posts made by other users

I would like to implement the following things in my website. I have done some extensive search over the internet but couldnt find and specific examples on how to implement them
I am developing this site in php using a mvc framework
Would like to have facebook registration on my website - users who have an account in facebook will get an option to use the details to register in my site, using their authentication I would pull the relavant details from their account and create a new account for them in my website. I would like to use facebook register fbml/fbjs in this case
Would like to have facebook login used to login into my site. How to use the sessions is what I would like to know?
I would like to make posts to the facebook-wall of the users registered in my site. Also if possible sent messages to them through my code whenever a new post is made to my site.
Thanks for your help.
For login and registration, you can check out http://developers.facebook.com/docs/guides/web/.
This one is for wall posts and you should be able to implement it in any language. It is given step by step.
http://thinkdiff.net/facebook/graph-api-iframe-base-facebook-application-development/