How to request "Facebook email on authentication" - facebook

In my solution I need user email after sign up / sign in. Therefore I need to guaratee get email everytime.
What am I thinking is - set required parameter "email" on "Facebook Authentication" process.
Problem is I don't see any settings Facebook Developer in console or documentation.
Q can anybody help how it solve?

After #WizKid #CBroe response I made workaround.
When user don't have email we ask for it again. :-)
https://www.facebook.com/dialog/oauth?
&client_id={{client_id}}
&scope=email
&redirect_uri={{redirect_uri}}
&response_type=code
&state={{state}}
&auth_type=rerequest

Related

OAuth sign in displays unclear message when no account associated

We are having many users signing in (oauth) reporting issues where they email is not valid. Problem is that they do not have an existing account, but message displayed is very confusing.
It should do the following:
Instead of "The email cannot be recognized by Uber", it should have a clearer message that there is no account associated with their email.
Automatically redirect to sign up
Thanks for the improvement tip - we may consider it as a future request. However, this question is not relevant to SO - please use in the future Uber google groups (https://groups.google.com/forum/#!forum/uber-developers) or send post's on Twitter at #UberDevelopers or #Uber_Support.

Sabe REST API of Passenger Name Record NOT OPEN

The below the page did not open, please let me know the REST API of "create passenger name record". I tried to open the page several days, it always failed.
I know SOAP API of "create passenger name record", What I want is REST API.
https://developer.sabre.com/docs/rest_apis/air/book/create_passenger_name_record/
Uh oh. You don’t have access to see this page. Try logging in to see if that does the trick. If that doesn't work and you think you should have access to this page, send us a note. NOTE: if you are a current customer who just registered, it can take us up to 24 hours to set up your account to see the resources. If this is an urgent request please contact us through the site.
Please Sign In or Register.
Error Page as signed in - Image Capture
Which browser are you using?
I tryed it in different browsers (Firefox, Chrome, etc..) and in all of them I get a notice to sign in or register to access this page.
Obviously you're not signed in. Have you tried creating and or signing in?

Paypal Get User Info from REST API

I am building a Login that uses "Login with PayPal button".
and uses the generated button: https://developer.paypal.com/webapps/developer/docs/integration/direct/identity/button-js-builder/
After getting the user's consent, I wants to get the user email address.
the web runs without error, however, I only gets User Id. others are null.
I did the example from the document: https://developer.paypal.com/webapps/developer/docs/api/#get-user-information
what are the right steps to get the user information?
Thank you.
Please look at the code example on https://devtools-paypal.com/guide/openid/ruby?interactive=ON&env=sandbox
As you can see there is a scope defined as
:scope => "openid email"
Most probably you missed email in your code.

Paypal Beta developer site, Existing user account not working

I have a developer account in Paypal, It was working perfectly few days back before the new beta developer site launched. I try to logged in with my credential to new website , but it show me error like:
Please check your Email Address and PayPal Password and try again.
Even when i try to use forgot your password link it show me the error like:
We couldn't find your email address. Please try again or select I
don't know what email address I used.
Both credential was correct, but i don't know why it's not working. I have searched for that and found some thread that suggested to clear your cookies and cache and try to use chrome or Firefox instead of using Internet Explorer. But no luck ,it's not working either. If someone have any suggestion for that how to solve this, please help me.
Are you using a live PayPal account to log in?
From developer.paypal.com:
Please log in with a PayPal account. After you log in, you can import
your Sandbox test accounts using the email address and password you
used previously with the Sandbox.
The is a bug with the "import feature", the form validation of email format fails if emails cannot contain a ".". As my original sandbox email contained a "." i cannot import.

Facebook Callback JSON does not return email sometimes

Facebook Graph API.
I am requesting email permission and it works all fine except for some users, the json does not return email field. I am not sure why this happens. The code is same and it works great for all users, returns email field except 1 in 100 or so users where it does not have this field in json. All other fields are there.
Has anyone faced this problem before ??
I checked the facebook privacy settings and there is nothing that prevents email from coming in json if user grants email access to facebook app, yet this is happening to me. I searched the net and no one else seems to be facing this issue.
Any hint would be appreciated
Never makes assumptions about what Facebook will send you, never expect every field to be present and never expect a Graph request to do what you want.
Facebook sometimes do things like this, a missing field here and there, a cryptic and unexpected error somewhere else… While it can be no harm be aware that it also happens in critial places like in the signed_request sent when an user launches an app.
You also have to know that 'your' Facebook may not be everyone else's Facebook. They do geographic and somewhat random deployments of their code. An option to hide your e-mail address to every application could appear for someone but not for someone else, without any particular reason.
Considering your particular issue, I doubt there is an option to hide you e-mail address to an app who has the mail permission, but if the permission is not mandatory someone could accept your app and cherry-pick optional permissions later.
I dealing with this issue recently. Apparently, facebook only promise to return "valid email" address. Some account do not having any "valid email". They can be account who using phone for validation, or account that email is expired. I tried with a account which email, lets said "xxxx.gmail.com" is expired, when query that account graph, i unable to get any email shows(by using facebook debugger). However, when i login xxxx.gmail.com in gmail, and re-activate the email, and i query graph api again for the account, it able to return me email.
had the same issue for a while, which caused some heavy head banging against the wall.
in my case the issue was due to the fact that some users have unverified emails or no email at all (when signing up via mobile/SMS).
in this case facebook will not provide an email on the response.
from the facebook docs:
note: this field will not be returned if no valid email address is
available for the user
sources:
https://github.com/mkdynamic/omniauth-facebook/issues/61
Register with Facebook sometimes doesn't provide email (sebastian's and colm's answers)
https://developers.facebook.com/docs/reference/api/user/
The only thing that worked for me was requesting for permitted fields through the API:
FB.api("/me", {fields: "email,..."}, callback)
This totally fixed the issue.
Hope that helps.