Jump to content

FluxCP Registration Addon via Facebook


JayPee

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

Sir JayPee can you share us some screenshot?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

Thanks Sir JayPee

sharing how it looks, from Sir JayPee's Demo Page

fbapi.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

im getting this..."That 'redirect_uri' isn't allowed for that client_id."

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

it means that your app domain and site URL where you are using your application is not permitted. Like in Basic Settingin the http://developers.facebook.com you specify the Site URL and App domain to be http://www.hello.com and you run the application at http://www.goodbye.com. Since you apply the application to run in www.hello.com, facebook will not permit you to use that on www.goodbye.com

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

what if im using a something like this..... "brice-ro.asurahosting.com/cp" it says error >>App Domain: http://brice-ro.asurahosting.com/cp/ is not a valid domain.

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

did you try removing the http:// and also try using your main domain which is http://www.asurahosting.com

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

ill try http://www.asurahosting.com ,

one question, if i put http://www.asurahosting.com in the app domain, ill put it on thr website url too?

App Domain : http://www.asurahosting.com

Website Url: http://www.asurahosting.com

lik that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

yes that's what I do

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  210
  • Reputation:   10
  • Joined:  11/20/11
  • Last Seen:  

Wow, Thanks JayPee!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

Hi, JayPee..

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  277
  • Reputation:   76
  • Joined:  11/23/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   1
  • Joined:  11/14/11
  • Last Seen:  

oups sorry.. Mistake by myself xD

Edited by none
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  210
  • Reputation:   10
  • Joined:  11/20/11
  • Last Seen:  

@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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

I think facebook doesnt allow subdomains. Coz i test it in my sourceforge account and it doesnt work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

i see...thank you for that... :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

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}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  277
  • Reputation:   76
  • Joined:  11/23/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

Oh great, thanks. now it's working. thank you!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  12/08/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   3
  • Joined:  01/21/12
  • Last Seen:  

This guide is also in Spanish? /pat

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  197
  • Reputation:   13
  • Joined:  05/14/12
  • Last Seen:  

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.)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   3
  • Joined:  08/06/12
  • Last Seen:  

Open up your addon folder and find this file:

mandark022.../themes/default/facebook/create.php

Open the file and look for this line at the bottom of the file, near the end:

data-redirect-uri="http://agonyro.net/etc">

Change the URL ( "http://agonyro.net/..." ) to your site's. Save, upload and enjoy.

  • Upvote 1
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  12/08/11
  • Last Seen:  

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
Link to comment
Share on other sites

×
×
  • Create New...