YAFLogo

theanh3112
  • theanh3112
  • 52% (Neutral)
  • YAF Forumling Topic Starter
6 years ago
I use lastest YAF version: 2.2.3. everything is ok. But when i try to connect to Facebook login. Failed.
https://github.com/YAFNET/YAFNET/wiki/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/auth.aspx?auth=facebook&code=AQDVkWDFFklTLlxtZr11qgZx0Q3xqV8202A8QBKd89nZJa_HIFBiX7EzEZfH4Liwu1QEdZlbeC7sz0RX-pAS7rpeGZE_rOQLJ2TcVj9WTsrBminGTavE2Pzd4kRZPbxdhQG7RYKi1cvzjS5AEor-phZoGDl_2d_ynFwcsFAFqgHKBE66mESTcspczJmAwOJemDbeAhQqcmy5e0_MVwu6XZx_oHfCQEed_4E8Kn-vrMLvHMK-7l5ebuGSFGV_W8Eglw1cxvOrgRx5n2FANmTl-XIjDu984W86a33MQbKrD5PYuwRMboNG7l-RFj4sSgxupNc#_=_ 

and cannot redirect to my YAF.
How must i do? Any help?
Sponsor

theanh3112
  • theanh3112
  • 52% (Neutral)
  • YAF Forumling Topic Starter
6 years ago
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
6 years ago
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.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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