Forums / Cotonti / Extensions / Facebook Plugin?

12>>>

barkerb23
#1 2011-01-18 05:51
where can i get a "login with facebook" plugin for my site as i see one here on cotonti? i heard people talking about it last year but has it been completed?

Added 28 seconds later:

thanks in advance
Kingsley
#2 2011-01-18 06:16
Trustmaster
#3 2011-01-18 06:29
It is actually FaceBook Connect plugin which I'm currently developing and testing on this site. Built with latest FB API, it will be finally available for download after I complete it.
May the Source be with you!
pieter
#4 2011-01-18 14:38
Since the plugin is here on the site, I can't logout.
If I click logout, I get to the homepage BUT still logged in.
... can we help you ...
Kort Online
#5 2011-01-18 15:51
I don't have probs
SED.by - создание сайтов, разработка плагинов и тем для Котонти
Trustmaster
#6 2011-01-18 17:17
Yes, this is because fbconnect logs you back again when you logout with Cotonti. I'll fix it a bit later.
May the Source be with you!
GHengeveld
#7 2011-01-18 18:38
Logging out from Facebook should fix that.

I wonder if using FBconnect also fixes the issue of getting logged out when using a mobile phone connection.
Trustmaster
#8 2011-01-18 18:58
It logs you in automatically if it finds an existing facebook connection linked to your Cotonti account.

Added 8 hours 23 minutes later:

Well, guys, current version is ready for testing. You can grab it here.

What this plugin enables your visitors to do:
  • Login to your site using their FaceBook account
  • Register new account on your site with some fields prefilled by FaceBook
  • Link existing account with FaceBook account
  • Logout from both your site and FaceBook (separate logout is not technically possible if accounts are linked and logged in)

Notice that you have to register your site as FaceBook application in order to use it. FB developer docs are located here. Apart from installing the plugin and filling the configuration (AppId, Secret), don't forget to put tags into your header.tpl.
May the Source be with you!
This post was edited by Trustmaster (2011-01-19 03:22, 13 years ago)
barkerb23
#9 2011-01-20 03:18
thanks. i tried it but look

www.pspcextreme.hostzi.com

Added 6 minutes later:

its messed up in the header. but when i pause the header, i get an error
This post was edited by barkerb23 (2011-01-20 03:24, 13 years ago)
Trustmaster
#10 2011-01-20 03:39
In header.tpl make sure you have XML namespace set:
<html xmlns="http://www.w3.org/1999/xhtml" {FB_XMLNS}>
and don't forget the actual login button {FB_LOGIN}. There are several other tags depending on what kind of buttons you want to use or construct yourself. More button options may be found in FB developer docs.
May the Source be with you!
barkerb23
#11 2011-01-20 04:58
just did. still messed up. login ar www.pspcextreme.hostzi.com with:
Username: demo
Password: demo
Trustmaster
#12 2011-01-20 05:36
You have inserted that <html> tag into <body>. What I meant is editing the existing <html> tag on top of the template by adding the {FB_XMLNS} part to it.
May the Source be with you!
barkerb23
#13 2011-01-20 07:24
same thing. heres my header.tpl plz fix it :(
<!-- BEGIN: HEADER -->
{HEADER_DOCTYPE}
<html xmlns="http://www.w3.org/1999/xhtml" {FB_XMLNS}>
<head>

<meta http-equiv="content-type" content="{HEADER_META_CONTENTTYPE}; charset={HEADER_META_CHARSET}" />
<meta name="description" content="{HEADER_META_DESCRIPTION}" />
<meta name="keywords" content="{HEADER_META_KEYWORDS}" />
<meta name="generator" content="Cotonti http://www.cotonti.com" />
<meta http-equiv="expires" content="Fri, Apr 01 1974 00:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="last-modified" content="{HEADER_META_LASTMODIFIED} GMT" />
{HEADER_HEAD}
{HEADER_BASEHREF}
<link rel="shortcut icon" href="favicon.ico" />
<link href="skins/{PHP.skin}/{PHP.theme}.css" type="text/css" rel="stylesheet" />
{HEADER_COMPOPUP}
<title>{HEADER_TITLE}</title>
</head>
<!-- SED-Light / Designed By: Xiode - XiodeStudios.Com & Alx - AlxDesign.com / Programming By: Xiode - XiodeStudios.Com -->
<!-- Copyright (c) XiodeStudios.Com. All Rights Reserved. Please read included Readme for more information. -->
<body>
    <div id="top">
        <div id="container">
            <div id="header">
                <div id="userBar">

	                 <!-- BEGIN: GUEST -->
                    <div class="userBarR"><a href="users.php?m=auth">{PHP.L.Login}</a>&nbsp;&#8226;&nbsp;<a href="users.php?m=register">{PHP.L.Register}</a>&nbsp;&#8226;&nbsp;<a href="plug.php?e=passrecover">{PHP.skinlang.header.Lostyourpassword}</a></div>
                    <strong>{PHP.skinlang.header.Welcome}</strong>
	                <!-- END: GUEST -->

	                <!-- BEGIN: USER -->

{FB_LOGIN}
{FB_LOGOUT}
{FB_LOGIN_REGISTER}
{FB_LOGIN_URL}
{FB_LOGOUT_URL}
{FB_REGISTER_URL}
                    <div class="userBarR">{HEADER_USER_LOGINOUT}</div>
                    <b>{HEADER_LOGSTATUS}</b>
                    <div class="userBarL">{HEADER_USER_ADMINPANEL} | {HEADER_USERLIST} | {HEADER_USER_PROFILE} | {HEADER_USER_PFS} | {HEADER_USER_PMREMINDER}<br />{HEADER_NOTICES}</div>
	                <!-- END: USER -->

                </div>
                <div id="navBar">
                    <div class="text">{PHP.cfg.menu1}</div>
                    <div class="homeLink"><a href="{PHP.cfg.mainurl}" title="{PHP.L.Home}">{PHP.L.Home}</a></div>
                </div>
            </div>
            <div id="content">

<!-- END: HEADER -->
Trustmaster
#14 2011-01-20 15:32
Try this:
<!-- BEGIN: HEADER -->
{HEADER_DOCTYPE}
<html xmlns="http://www.w3.org/1999/xhtml" {FB_XMLNS}>
<head>

<meta http-equiv="content-type" content="{HEADER_META_CONTENTTYPE}; charset={HEADER_META_CHARSET}" />
<meta name="description" content="{HEADER_META_DESCRIPTION}" />
<meta name="keywords" content="{HEADER_META_KEYWORDS}" />
<meta name="generator" content="Cotonti http://www.cotonti.com" />
<meta http-equiv="expires" content="Fri, Apr 01 1974 00:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="last-modified" content="{HEADER_META_LASTMODIFIED} GMT" />
{HEADER_HEAD}
{HEADER_BASEHREF}
<link rel="shortcut icon" href="favicon.ico" />
<link href="skins/{PHP.skin}/{PHP.theme}.css" type="text/css" rel="stylesheet" />
{HEADER_COMPOPUP}
<title>{HEADER_TITLE}</title>
</head>
<!-- SED-Light / Designed By: Xiode - XiodeStudios.Com & Alx - AlxDesign.com / Programming By: Xiode - XiodeStudios.Com -->
<!-- Copyright (c) XiodeStudios.Com. All Rights Reserved. Please read included Readme for more information. -->
<body>
    <div id="top">
        <div id="container">
            <div id="header">
                <div id="userBar">

	                 <!-- BEGIN: GUEST -->
                    <div class="userBarR"><a href="users.php?m=auth">{PHP.L.Login}</a>&nbsp;&#8226;&nbsp;<a href="users.php?m=register">{PHP.L.Register}</a>&nbsp;&#8226;&nbsp;<a href="plug.php?e=passrecover">{PHP.skinlang.header.Lostyourpassword}</a></div>
                    <strong>{PHP.skinlang.header.Welcome}</strong>
{FB_LOGIN}
	                <!-- END: GUEST -->

	                <!-- BEGIN: USER -->
                    <div class="userBarR">{HEADER_USER_LOGINOUT}</div>
                    <b>{HEADER_LOGSTATUS}</b>
                    <div class="userBarL">{HEADER_USER_ADMINPANEL} | {HEADER_USERLIST} | {HEADER_USER_PROFILE} | {HEADER_USER_PFS} | {HEADER_USER_PMREMINDER}<br />{HEADER_NOTICES}</div>
	                <!-- END: USER -->

                </div>
                <div id="navBar">
                    <div class="text">{PHP.cfg.menu1}</div>
                    <div class="homeLink"><a href="{PHP.cfg.mainurl}" title="{PHP.L.Home}">{PHP.L.Home}</a></div>
                </div>
            </div>
            <div id="content">

<!-- END: HEADER -->

But it won't work anyways because you have not registered your site as FaceBook application and have not filled AppId config.
May the Source be with you!
GHengeveld
#15 2011-01-20 16:29
Just wanted to say the facebook thing has an issue. If I'm on mobile (which would normally mean I'd keep logging out), the FB plugin apparently logs me back in every time, but it always redirects back to the last page I was on. The effect of this is that I can no longer visit any page except that one page, because if I visit another page, I will be logged out, logged back in again by FB connect, and redirected back to the page I was on before.

12>>>