[DEV] OAuthorize phpBB (Facebook connect)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
x13729388
Registered User
Posts: 30
Joined: Tue Apr 26, 2011 10:56 am

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by x13729388 » Fri Jun 28, 2013 7:39 am

I have a question about using this mod. If the user account is integrated with Facebook, can the user just login to my phpBB site to use the Share on Facebook / Thumbup button without login Facebook again? That is use phpBB login to authorize Facebook login.

User avatar
paoloumali
Registered User
Posts: 44
Joined: Wed Jun 22, 2011 1:57 pm

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by paoloumali » Fri Jun 28, 2013 1:30 pm

As long as your FB is already logged in, share wont ask you to relogin.
Mods:
OAuthorize phpBB just a simple Facebook login plugin
phpBB Bootstrapped

x13729388
Registered User
Posts: 30
Joined: Tue Apr 26, 2011 10:56 am

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by x13729388 » Sat Jun 29, 2013 5:33 am

Thanks for the reply, but I'm still confuse with it.

I have two questions:
1. If user has not logon Facebook and just logged on my phpBB site, can this user recognize by Facebook?

2. If user logged on with one Facebook account and remembered by Facebook, but this time he or she go to my phpBB site and use the phpBB logon system to logon which link to another Facebook account, if he or she use the Facebook button, which Facebook profile will be selected?

User avatar
paoloumali
Registered User
Posts: 44
Joined: Wed Jun 22, 2011 1:57 pm

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by paoloumali » Sat Jun 29, 2013 4:08 pm

Think this over.

Every phpbb user has a row of his data. The mod simply adds a column on his custom profile table that is allotted for the facebook id. The mod allows you to assign a new facebook id, or remove an already assigned facebook ID.

If there's an assigned facebook ID, then that makes logging in possible. If none, it will suggest assigning a facebook id.

The code makes sure that no 2 forum accounts will have 1 same facebook id.
Mods:
OAuthorize phpBB just a simple Facebook login plugin
phpBB Bootstrapped

tornav
Registered User
Posts: 2
Joined: Fri May 03, 2013 11:22 am

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by tornav » Sun Jun 30, 2013 8:49 pm

I followed all the instructions, but the fb login is not displaying, though it's displaying in user cp. I'm using Alpha theme, is there anything else which I need to manually add?

User avatar
paoloumali
Registered User
Posts: 44
Joined: Wed Jun 22, 2011 1:57 pm

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by paoloumali » Sun Jun 30, 2013 9:44 pm

try it with prosilver. mod never said it's for alpha theme.
Mods:
OAuthorize phpBB just a simple Facebook login plugin
phpBB Bootstrapped

User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin
Contact:

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by Kamahl19 » Mon Jul 01, 2013 5:42 pm

I guess this MOD is not installed on your DEMO board or you disabled registration.

bbuckler
Registered User
Posts: 13
Joined: Sat Mar 02, 2013 3:50 am
Location: Killeen,Tx
Contact:

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by bbuckler » Wed Jul 03, 2013 4:05 pm

The setup seem to go by easy but when I click on the facebook button I get this.

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/oauthorize/facebook/src/facebook.php on line 49: session_start() [function.session-start]: open(/var/php_sessions/sess_1b8a80164680d25ba887b680e0a283f4, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file [ROOT]/oauthorize/facebook/src/facebook.php on line 49: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at [ROOT]/includes/functions.php:3832)
[phpBB Debug] PHP Warning: in file [ROOT]/oauthorize/facebook/src/facebook.php on line 49: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at [ROOT]/includes/functions.php:3832)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 2560: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3832)
[phpBB Debug] PHP Warning: in file Unknown on line 0: Unknown: open(/var/php_sessions/sess_1b8a80164680d25ba887b680e0a283f4, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file Unknown on line 0: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions)

bbuckler
Registered User
Posts: 13
Joined: Sat Mar 02, 2013 3:50 am
Location: Killeen,Tx
Contact:

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by bbuckler » Wed Jul 03, 2013 9:20 pm

I got the first problem fixed now this
The webpage at https://www.facebook.com/dialog/oauth?c ... cope=email#_=_ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Here are some suggestions:

bbuckler
Registered User
Posts: 13
Joined: Sat Mar 02, 2013 3:50 am
Location: Killeen,Tx
Contact:

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by bbuckler » Wed Jul 03, 2013 10:25 pm

I got it working :D One of the number was missing on the app id.

User avatar
paoloumali
Registered User
Posts: 44
Joined: Wed Jun 22, 2011 1:57 pm

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by paoloumali » Thu Jul 04, 2013 1:28 am

I'm sorry I was not able to help you figure it out but am glad that it's working on your end now.
Mods:
OAuthorize phpBB just a simple Facebook login plugin
phpBB Bootstrapped

Weq
Registered User
Posts: 2
Joined: Mon Mar 24, 2014 9:15 pm

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by Weq » Mon Mar 24, 2014 9:19 pm

Hi,
It quite good MOD, i'll say that :)

Got two problems though:
1) when registering new user nothing is filled automatically (even when I'am logged into FB)
2) then links are not facebook like buttons - just links.
Maybe there is something missing?

Address is http://asgsport.krakow.pl/forum/

Regards,
Weq

User avatar
paoloumali
Registered User
Posts: 44
Joined: Wed Jun 22, 2011 1:57 pm

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by paoloumali » Tue Mar 25, 2014 10:55 pm

Weq, the incoming phpbb 3.1 branch will have oauth as one of its new features. It's on beta stage now. viewtopic.php?f=14&t=2233216
Mods:
OAuthorize phpBB just a simple Facebook login plugin
phpBB Bootstrapped

Weq
Registered User
Posts: 2
Joined: Mon Mar 24, 2014 9:15 pm

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by Weq » Fri Mar 28, 2014 9:09 pm

Well, that's not really a solution for me, unless it will be turn to non-beta in a few days ;)
Regards,
Weq

User avatar
Bruno36
Registered User
Posts: 287
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [DEV] OAuthorize phpBB (Facebook connect)

Post by Bruno36 » Thu Apr 03, 2014 8:17 am

Hello!

When a member wants to register there is an error message that says ..
http://www.scooter-chinois-4t.com/board ... r=facebook
page not found
Excuse me for my poor English, I speak french
Bruno36

Locked

Return to “[3.0.x] MODs in Development”