i am able to download gmail contacts using the api. without entering the user's email and password.
Sending the authenticated request with a valid access_token i am able to grab all user;s contacts who has authenticated my application. now i want to download the users email messages from inbox.
If you grab contact , then YOu are familiar with oauth .so you just change url of contact graber of google to email..
I think YOu used this URL https://www.google.com/m8/feeds/contacts/default/full/ to get contact after authentication.Instad of this use https://mail.google.com/mail/feed/atom/ URL..
For playground visit this url : https://code.google.com/oauthplayground/?code=4/-UYL6NIP2avszVz3hTNIs6Z8vmOe
Related
Is there a way I can request twitter user email address, avartarURL using codebird.php
Currently, I only get the screen name.
What I am doing is:
$reply = $this->client->oauth_requestToken(array('oauth_callback' => $this->clientCallback));
The tutorial I am currently following:
PartFour This will give you a sense of what is going on from the first 5 min.
You can request a user’s email address by calling the account/verify_credentials Twitter API method, setting the optional include_email parameter to 1:
$reply = $cb->account_verifyCredentials([
'include_email' => 1
]);
print_r($reply);
This will only work for Twitter apps that have the option to request email addresses from users enabled.
The “Request email addresses from users” checkbox is available under the app permissions on developer.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.
Please note - Your app will need to regenerate the user access tokens for previously authenticated users to access their email address.
Please note - You can view and edit your existing Twitter apps via the Twitter app dashboard if you are logged into your Twitter account on developer.twitter.com.
I am making a user registration / login system in php and want to verify the user by sending him/her a verification code that the user has to type to make an account .
Now i dont want to send the verification code through mail( phpmail / phpmailer) or any sms service, instead i want to send the code to his facebook messages inbox from my facebook account by using his email id..is it possible to do so? is there any method or api that allows such type of function?
Thanks in advance
This website provides a powerful api that will do just what you need.
You can also check the Facebook doc
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).
I'm using Facebook Connect on my website. I need to enable users to send themselves automated private messages from my site to their Facebook account. Does the Facebook API allow this?
Edit: I found a solution https://developers.facebook.com/docs/reference/dialogs/send/ however I need to send messages without the user interacting with the write message pop up. Messages should be sent directly if possible because they are automated, set up by the user once.
You can send to their facebook email. Facebook email is consisting profile nickname+'#facebook.com'. The email will goes to their facebook inbox message. Note that facebook email does not accept spoofing email. You will need whitelabel domain or use SendGrid.
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.