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

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.

Related

How to automatically post to Facebook

Please could you help. I have created a website that allows people to upload listings of items they are selling. I want to know how to add the feature where when someone creates a listing, it automatically posts on the user's FB page, with a link to the listing on our website. Is this possible? Would the user have to log into our website using their FB account for this to happen? Thanks everyone for your help.
Martin
You need to create a Facebook App and use Facebook Graph API with publish_actions permissions to do that. Note that the facebook rules prohibit sending fully automated messages that the user has no control, your user must have the ability to edit the message before sending

How this Facebook API Program Capture Visitors Name and Email without Permission

I wonder How this Facebook API Program Capture Visitors Name and Email without Permission. I visited a Facebook page today and found that my name and email automateically appear when I click on the post image. I guess they are doing it with the latest Facebook SDK.
This is the post I am referring to.
This is the page about their API Script.
Can anyone tell me where I can setup the same using PHP. I could not locate any information in Facebooks developer page. Highly appreciate your feedback.
Ishaq.
Looks like Lead Ads, the docs are full of example code:
https://developers.facebook.com/docs/marketing-api/guides/lead-ads/v2.5
https://www.facebook.com/business/help/397336587121938/

Is there API to get someone's facebook profile with out login to 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

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.

Anyone know of a good tutorial for Facebook authentication?

I'm linking my app to Facebook, and would like people to log in with their Facebook account, but I can't figure out how to do this. I had read up on Facebook Connect, but it seems that that's not used any more - but every tutorial I can find seems to refer to it. When I try to follow them, it doesn't work, because the interface has changed.
So, can anyone direct me to a tutorial or guide to doing this the new way?
Basically, what I want to do is this:
A user who is signed into Facebook and comes to my webpage is automatically logged in to my app (with the usual Facebook 'granting permission' windows etc), or can sign in with their Facebook account if they're not already logged in.
I then want to use Facebook to link users with their friends who are also registered on my site, so they can share things.
I would also like to have access to Facebook comments made on wall posts from my site - so the comment stream for a particular post can be seen on my site as well as on Facebook, and comments can be made on either.
If anyone can point me in the right direction (or even tell me what I should be typing in to Google!) I'd be very grateful.
Thanks.
Some sample apps that do many of the things you speak of are shown here. The Graph API is probably your best bet right now for delivering the content and access you need and there are numerous tutorials online for how to use it, including the Facebook Developers site itself.
You will find good Tuts on ThinkDiff, e.g.
http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/
http://thinkdiff.net/facebook/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/
http://thinkdiff.net/facebook/graph-api-iframe-base-facebook-application-development-php-sdk-3-0/
I know this is an older question, but the current method for authentication is OAuth 2.0.
Facebook provides a pretty good outline of what steps are necessary in this Reference:
https://developers.facebook.com/docs/authentication/client-side/
This example allows the authentication to occur entirely in Javascript on the client side so that you can request a potential user to authenticate via Facebook and then confirm access to your application.
If the user is already logged in, only the access confirmation for your application is performed.
If the user is already logged in and access has already been granted, the user is not required to login, or reconfirm access.