Is there API to get someone's facebook profile with out login to facebook? - facebook

I was wondering if its possible to get one's facebook profile (to be exact,'profile url') through their API?
I need an api to get fb profile link using a matching email address. I dont want to login to facebook though.I was trying to search for this but it seems you need to log in to facebook to get that.
Any idea or is it feasible?

You need ID of the concerned user which can't be achieved without using the Facebook Login, since Facebook login is the starting point to get the current user info (/me).
Search API could have helped you since you have the email ids of users, but unfortunately this api doesn't support user search with email!
So, answer is simple- NO, you cannot get the ID (profile link) of the user without using the facebook login.

Not that I can think of. Facebook's Graph API gives you some public info but that info given depends on the users Facebook's settings on what is public or not. You could maybe get some users profile picture but not others, making it not a very viable option for practical use. Hope that helps

Related

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 ...

FB Graph API How can I get the list of all user ever logged in my app?

It's possible to access through Graph API (or any other way) the list of all users logged in the past to my FB app?
Thanks
Marcello
There is no way to get that information, unless you store it in your own database.
You can see how many people using Facebook analytics. You cannot see their usernames, email, etc- you might be able to extend the analytics with some development to include those... but they dont come configured out of the box.
Here is a link to Facebook App Analytics:
https://developers.facebook.com/products/analytics

Account Activity Facebook API

I want to know if it is possible to recover gently from the facebook listta of all users logged in (login) made. Estite an API that returns this list as shown in the figure below?:
thanks for your suppor
As far as I know, this is not part of the Facebook Public API.
You will likely need to simulate a browser request on user's behalf to accomplish that, which could well be violating Facebook's TOS.

Facebook: get the email of a page (not user) via API

Is there a way to get the email for a page, via any of Facebook's APIs?
I know Facebook user emails are very carefully privacy-protected, but pages seem to be different. For instance: if I visit this FB page, even if I'm not logged in to Facebook, the email is still revealed: https://www.facebook.com/pages/Comcept-Communicatie-Marketing/222648667821245?sk=info
It seems that something so public via their interface ought to be exposed in an API somewhere, but I can't find it. Anyone tell me what I'm missing?
Right now you can't get that information even if you ask for manage_pages and email permissions.
I have raised a bug with Facebook and hopefully they'll add it as a feature if enough people vote:
https://developers.facebook.com/bugs/294577810649098
There is no email for a page in the FQL nor in the page graph api object. So via the API is it not shown. Remember the API is a stripped down version of what you can see via the normal Facebook GUI.
You're best bet is to have the page admin auth your app asking for email permissions.

Graph API get information on facebook link shared

is that possible we can get the information from facebook API whether graph or REST or FQL regarding user sharing. Such as video or post or anything can share via facebook and it is shared by a list of user, with profile id or user name. I found something like this http://appshack.tv/2011/03/likes/ but it is just the counter, lack of information. Any way can do? Coz I found that facebook not stated everything in the documentation. Some trick is found from third party side.
No you can't get the user ids. Facebook will do their best NOT to share the user id with you "unless" they (the users) authorize your application.
And guess what....you can't even get the list of the users who are using YOUR application! (You can only get the count!)
Check this answer.