Jump to content

Recommended Posts

Posted

File Name: FluxCP Registration Addon via Facebook

File Submitter: JayPee

File Submitted: 11 Apr 2012

File Updated: 11 Apr 2012

File Category: Web Resources

This is a an alternative solution for those who cant make there Email Verification feature to work in there Registration System.

It uses Facebook to identify if the user has a valid Email Address.

Guides:

1.) Making your Facebook Application within Facebook

As you may know in order for this Addon to work you must create an application in facebook.

1.1: Login to your facebook account at http://www.facebook.com

1.2: After you login to your facebook account kindly goto https://developers.facebook.com

1.3: In developers homepage yoo will see a link name App, click it

1.4: When your already in the apps facebook you will see the Create New App button, now click it

1.5: A dialog box will appear, just fill up the necessary fields.

1.6: After you finished filling up the on the dialog box you will be redirected to your newly created Application Settings

1.7 The default page whenever you want to edit your application is the Basic Settings page.

2.) Basic Settings Application Configuration

2.1: In the Basic Settings page the most important field you need to edit is the App domain ( You will put here the Address where you want to run the Application ex: http://www.mydefaultro.com if you do not specify the App domain the Addon might not work properly), now click also the Website you will enter there also the Address where you will run the Application.

2.2: Now Save it. It might take several minutes for the settings to take effect.

3.) Auth Dialog Settings Application Configuration

3.1: In the Auth Dialog Settings Page just scroll at the very bottom and you will see Authenticated Referrals, now click it.

3.2: In Authenticated Referrals, in User & Friends Permission kindly enter the value "email" without the doubles quotesbecause the application must ask first a permission to know about the user's email.

3.3: Now click Save Changes.

4.) FluxCP Addon Configuration

4.1: We are now in the FluxCP Addon. Put the addon in the addons folder of your FluxCP.

4.2: Now edit the config/addon.php and fillup the following:

* For "FB_API_KEY" enter the Api Id that facebook provided to you, this can be seen in the basic settings of your Facebook Application. This key will be your public api id.

* For "FB_API_SECRET_KEY enter the Api Secret that facebook provided to you, this can be seen in the basic setting of your Facebook Application. This key will be your private apli id. Kindly do not share this to others.

Other Configuration's are:

* 'NoCase' - set to true if you dont want a case sensitive comparison

* 'UseMD5' - set to true if you want to use MD5 password

* 'level' - set this to what will be the default level/group_id of the user after registration.

5.) The Database

5.1: In schemas folder you will find a .sql file named cp_fb_register, kindly import in your database. This will use for the Facebook Login Addon that I will develop in the future.

Now run the Addon, Hope it works and Hope you understand my English /no1 Sorry I cant provide the Screenshot version of the guide because Im having a hard time making the screenshot due to make broken touchpad.

Updated version of this addon can be found at: https://github.com/m...-Facebook-Addon

Future Updates:

  • Login Feature - you can use your facebook account to login to the Control Panel
  • Auto Login after Registration

Click here to download this file

  • Upvote 3
Posted (edited)

Hi, JayPee..

i tried using http://www.asurahosting.com still nothing, any other solution? >.<

I don't wanna sound like a buzz kill, but please make your own thread for support. I bet JayPee and others would love to help there.

Keep on rocking, love the API!!!

P.S. So when is the Google API, lol?

Edited by Matrixfox
Posted (edited)

@Mr BrycE

try to buy your own domain and hosting.

i think if your site is using a subdomain this addon will not work. ( happens to me with ip-board with facebook login. )

Edited by quesoph
Posted

Hi there JayPee, can you tell me why am I seeing this and how will I solve it?

[/i]
[b]	Critical Error[/b]

An error was encountered during the lifetime of the application.
This could be due to a variety of problems, such as a bug in the application.
[b]However, normally it is caused by [i]misconfiguration[/i].[/b]
[b]	Exception Details[/b]

Error: [b]Exception[/b]
Message: [i]Facebook needs the CURL PHP extension.[/i]
File: /var/www/cp/addons/facebook/modules/facebook/base_facebook.php:19										File							Line							Function/Method											/var/www/cp/addons/facebook/modules/facebook/facebook.php							18							require_once()											/var/www/cp/addons/facebook/modules/facebook/create.php							2							require_once()											/var/www/cp/lib/Flux/Template.php							337							include()											/var/www/cp/lib/Flux/Dispatcher.php							168							Flux_Template::render()											/var/www/cp/index.php							177							Flux_Dispatcher::dispatch()			
[b]	Exception Trace As String[/b]

#0 /var/www/cp/addons/facebook/modules/facebook/facebook.php(18): require_once()
#1 /var/www/cp/addons/facebook/modules/facebook/create.php(2): require_once('/var/www/cp/add...')
#2 /var/www/cp/lib/Flux/Template.php(337): include('/var/www/cp/add...')
#3 /var/www/cp/lib/Flux/Dispatcher.php(168): Flux_Template->render()
#4 /var/www/cp/index.php(177): Flux_Dispatcher->dispatch(Array)
#5 {main}

Posted

Hi there JayPee, can you tell me why am I seeing this and how will I solve it?

[/i]
[b]	Critical Error[/b]

An error was encountered during the lifetime of the application.
This could be due to a variety of problems, such as a bug in the application.
[b]However, normally it is caused by [i]misconfiguration[/i].[/b]
[b]	Exception Details[/b]

Error: [b]Exception[/b]
[color=#ff0000]Message: [i]Facebook needs the CURL PHP extension.[/i][/color]
File: /var/www/cp/addons/facebook/modules/facebook/base_facebook.php:19										File							Line							Function/Method											/var/www/cp/addons/facebook/modules/facebook/facebook.php							18							require_once()											/var/www/cp/addons/facebook/modules/facebook/create.php							2							require_once()											/var/www/cp/lib/Flux/Template.php							337							include()											/var/www/cp/lib/Flux/Dispatcher.php							168							Flux_Template::render()											/var/www/cp/index.php							177							Flux_Dispatcher::dispatch()			
[b]	Exception Trace As String[/b]

#0 /var/www/cp/addons/facebook/modules/facebook/facebook.php(18): require_once()
#1 /var/www/cp/addons/facebook/modules/facebook/create.php(2): require_once('/var/www/cp/add...')
#2 /var/www/cp/lib/Flux/Template.php(337): include('/var/www/cp/add...')
#3 /var/www/cp/lib/Flux/Dispatcher.php(168): Flux_Template->render()
#4 /var/www/cp/index.php(177): Flux_Dispatcher->dispatch(Array)
#5 {main}

It looks like your missing CURL PHP extension.

  • 4 weeks later...
Posted

Do I only have to put this in the addon folder and open it? I already finished configuring stuffs but I can't make it run inside the addon folder.

  • 1 month later...
  • 1 month later...
Posted

I have a working demo here at: http://www.agonyro.net/fluxcptest

hi jaypee i try to set up but got an error upon registering can you help out thanks if you have time, just add me up on yahoo messenger here [email protected] thanks.

Error encounterer:

Unable to load the registration form for Random Ragnarok Online. You may have previously blocked this app on Facebook. Go to your Facebook privacy settings to unblock this app. (Error: That 'redirect_uri' isn't allowed for that client_id.)

  • 2 months later...
Posted (edited)

I'm having this kind of error...

Error in recording the facebook account in the database. Kindly inform the administrator about this error.

Edited by Jayzy
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...