how to get admin email page from facebook graph API - php

hello i'm trying to figure out how to get the admin page email with facebook graph API.
is there any option to get this data with the API ? or an alternative way to get this data without facebook graph API.
thanks.

On the Page endpoint there is the emails field:
The emails listed in the About section of a Page
For an App there are two fields: contact_email and user_support_email:
Email address users can use to contact developers
and
Main contact email for this app where people can receive support
The policy forbids using any other mechanism but the API to retrieve information from Facebook (e.g. scraping is not allowed).

Related

Facebook social login get user name, email, phone

I would like to know what are the prerequirements for facebook API to allow a PHP web page to pull the following user data:
name
email
phone
As far as I understand, pulling the phone number requires that your website is whitelisted with facebook / Websense ?
Please advice.
Thank you!
As Facebook uses OAuth, you have to build a so-called login flow. See the docs at
Facebook Login for the Web with the JavaScript SDK
Manually Build a Login Flow
Within this flow, you have to request permissions from the user. For your use case, you'll need
public_profile
email
There's no chance to get the phone number out of the Graph API.

Pull a user's Google+ or Gmail list of contacts and their email addresses

I'm building an app in which I'm trying to allow a user to log in through Google+ (currently using the Google API PHP Client Library) and pull their entire contact list in to decide if they want to send an email to their list from my app. I can easily see how to allow the user to grant access to multiple permissions through different Google APIs through setting scopes.
I'm struggling to see either what scope I should be setting when making a request and/or what API should accomplish pulling a logged in user's contact list along with each contact's email address.
Any help would be greatly appreciated.
I found the answer, you have to pull contacts with an valid OAuth request through the Google Contacts API. On the documentation page for the Google Contacts API, Google says:
The Google Contacts API allows client applications to view and update a user's contacts. Contacts are stored in the user's Google Account; most Google services have access to the contact list.
You can find the documentation here.
https://developers.google.com/google-apps/contacts/v3/

Best Practice on Implementing Social Login on Mobile App

I'm currently building a web service to allow a mobile app to login to our app using Facebook.
What is the best practice on implementing that feature?
My current flow is :
1st condition : User haven't registered yet...
User tap "Login with Facebook" button in the mobile app.
And then, user allows permission for the Facebook app that I created
for the mobile app.
The app retrieved email address, Facebook ID number, and Name from
the Facebook API
The app check if the Facebook ID && Email address already registered
in our database
If not registered :
The email address, Name, will be automatically filled into the
Registration form
After submitting, the app sends the information (Fullname, email,
hashed password, and facebook Id to the server, registering the user)
If already registered :
- The server returns the token code, which used for in-app activity
Do you think there will be a security issue there? I'm thinking if maybe someone knows you, knows your Facebook ID which can be fetched using Graph tool, and possibly know your email address, that people can logged on to the app easily by sending all the data to the server.
ALSO, I'm thinking of implementing the same method with Twitter, but it seems that email cannot be retrieved using Twitter API.
Any work-around on using Twitter API?
Thank you very much for your answer.

Develop 1 Facebook Contact Importer (After Authorization of User -> Display names & emails of their friends)

I want to grab the contact lists (frnd name & frnd email) of the user after authorization on facebook.
What to do?
I had created 1 apps on developer, facebook, which api i had to use regarding it graph or facebook connect, or what to do?
We have 1 social networking in php in smarty framework.!
Friend's e-mails are not available in the API. Take a look in the docs and you'll see that it says "N/A" for friends email (at the very bottom om the table).

Sending emails to friends from facebook application

I want to invite friends via facebook to my application. For example user can send his friends facebook IDs to my php service, and this service send them emails via facebook api. I found notifications.sendEmail function for that, but it send email only for me if I logged in FB. So, can I send invitation emails by FB api if they are not users of my application?
For sending app requests, please use https://developers.facebook.com/docs/reference/dialogs/requests/ as it is against policy for an app to automatically send app request to friends of its users. It must be user initiated and also user driven as to which friends get invited.
Also, you cannot get email addresses of a user's friends, this is also prohibited.

Categories