theanh3112
2016-08-10T09:06:25Z
I use lastest YAF version: 2.2.3. everything is ok. But when i try to connect to Facebook login. Failed.
https://github.com/YAFNE...iki/Facebook-Integration .
When i access to login page in my YAF, continue http:/mysite.com/login?auth=facebook
-> continue, my browser address is:
http://forum.mysite.com/...MboNG7l-RFj4sSgxupNc#_=_ 

and cannot redirect to my YAF.
How must i do? Any help?
Sponsor
theanh3112
2016-08-11T03:49:25Z
http://forum.mysite.com/  -> root
auth.aspx is on root folder.

Facebook app config:
Client OAuth Login : enable
Web OAuth Login : enable
http://forum.mysite.com/ 
Public: enable
i added FB APP ID & Secret in app.config.

here is the log:
Quote:

Error while trying to login or register the facebook user System.ArgumentNullException: Value cannot be null. Parameter name: Email cannot be null. at YAF.Providers.Utils.ExceptionReporter.ThrowArgumentNull(String providerSection, String tag) in e:'RITC'yafsrc'YAF.Providers'Utils'ExceptionReporter.cs:line 134 at YAF.Providers.Membership.YafMembershipProvider.GetUserNameByEmail(String email) in e:'RITC'yafsrc'YAF.Providers'Membership'YafMembershipProvider.cs:line 1055 at YAF.Core.Services.Auth.Facebook.LoginOrCreateUser(HttpRequest request, String parameters, String& message) in e:'RITC'yafsrc'YAF.Core'Services'Auth'Facebook.cs:line 186 at YAF.Auth.HandleFacebookReturn() in e:'RITC'yafsrc'YetAnotherForum.NET'auth.aspx.cs:line 237



But cannot redirect without blank page 😞, helpppppp
tha_watcha
2016-08-12T06:08:21Z
The Problem is according to Facebook if the user does not provide an email address (because the user uses his phone number) then YAF throw an error because yaf needs the email address.

In YAF 2.3.0 i added a check if the email address is empty and if its empty the user gets an error message instead of the white screen.
UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved