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.
Related
Currently I am creating website that allow user login by their facebook. and the website require their email.
the problem is how to facebook authorization with require their email.
but when the user doesn't give their email permission, how to cancel the authorization process.
I know facebook docs tell me, that facebook was not guarantee we grab the user email. but how to cancel when the user does not allow their email in permission list
https://developers.facebook.com/docs/facebook-login/permissions/v2.3
email
Provides access to the person's primary email address via the email
property on the user object.
Do not spam users. Your use of email must comply with both Facebook
policies and with the CAN-SPAM Act.
Note, even if you request the email permission it is not guaranteed
you will get an email address. For example, if someone signed up for
Facebook with a phone number instead of an email address, the email
field may be empty.
Review Your app may use this permission without review from Facebook.
when user disable their email permissions picture :
[SOLVED]
I can using user revoking permissions.
see here :
Using Laravel Socialite to Manage User socials setting (like pinterest at user settings page)
I have 2 types of users in my system , lets say its A and B. A has an account with docusign and sends a document through email to B. B (who does not have an account on docusign) signs it using docusign. Now for making the api call (https://demo.docusign.net/restapi/v2/login_information), i need to specify the integrator key, email and password.
My question is how will i check whether a user has an docusign account or not and if he/she has an account, should i store the credentials of that user in the db or is there any way by which i can create a new docusign user automatically during the registration process?
Edit : i am using rest api with php
With DocuSign you only need an account to SEND documents, signing documents is always free and you do not need an account to sign.
We have a request from a client to update facebook status/comments through a text message.
Here is the scenario.
The SMS carries the fb Username,Password and the status/comments and this will goes to a SMS Gateway. Then the USername,Password and the status/comments come to our application and our application should facilitate to update the status and comments on the fb account.
Is there a method to authenticate the user through a SMS (Auth Dialog box) or is there any other method to update status/comments on fb through a sms. This is a PHP application.
Why don't you ask your user to create an account on your site and authorize your Facebook registered App to access his timeline? He would also register his phone number on your site and get a short numeric unique ID.
Then he can just send an SMS and when you detect a phone number or the numeric ID in a SMS, you post with the Facebook API which you are authorized for.
Sending Username and Password via SMS is not a great idea. A numeric ID of the phone number itself is much safer.
PS: I'm not using FBAPI but this is how it's supposed to work, from what I heard.
it is not possible to authenticate using username and password.
you should ask your users to create new application on their profile or authenticate first via your website in order to grant you an access.
after obtaining application_key and application_secret you can manipulate with user's account using these pairs.
please refer to facebook's developer zone to get more details on how fbapi works.
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
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.