HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Integrating Facebook

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#86246 (In Topic #17650)
Avatar

Well-settled

I've been meaning to make my site very friendly towards facebook users so I installed the Facebook addon.
I used to have version 7 and since I upgraded to 8.1 I uninstalled and installed the v8 of the addon.

Entering AppID and secret, I get:

Facebook authorisation
Successfully authorisation Facebook posting. Applicable posts now show up on your Facebook page.

Now, when I try to add, say a Like button in the right panel, it works on the preview but not on the live site.
Viewing the page source, the code is there, but just not working. Same goes to side_personal_stats and the login page.

Also, I can't figure for the life of me how to replace normal commenting system with facebook comments in catalogue entries. I suppose I need to replace {COMMENT_DETAILS} in CATALOGUE_DEFAULT_ENTRY_SCREEN.tpl with something else. Tried {FACEBOOK_COMMENTS} but it said that it wouldn't pass it on the template.

I did place all the template files from the addon zip into my custom theme folder. What am I missing? :S
Back to the top
 
Posted
Rating:
#86257
Avatar

Well-settled

Also, I can't logout. Pressing logout takes me to the page that says I have logged out but in reality going back to any page shows I'm still logged in and I have access to admin page and everything.

Trying to login from a different browser that had me logged out, I got this error:

An unknown authentication scheme was found in the database against your member. Unfortunately we cannot authenticate you. If your account is tied to a third party service maybe you just need to use a different login button.

I guess since my account is tied to my facebook login (since the v7 installation) I need to login through facebook? :S
Back to the top
 
Posted
Rating:
#86272
Avatar

Viewing the page source, the code is there, but just not working. Same goes to side_personal_stats and the login page.

My guess is your HEADER.tpl may be missing {$EXTRA_HEAD}. IIRC that is how the addon injects the Facebook Javascript code. Previews use a different template which probably does have that in.

Also, I can't figure for the life of me how to replace normal commenting system with facebook comments in catalogue entries. I suppose I need to replace {COMMENT_DETAILS} in CATALOGUE_DEFAULT_ENTRY_SCREEN.tpl with something else. Tried {FACEBOOK_COMMENTS} but it said that it wouldn't pass it on the template.

Not an intended use case but the Tempcode syntax for putting in a block should make it possible to embed the Facebook comments block into a template. {$BLOCK,block=xxx,...}
Or simply to use the code they supply (no need to do anything using ocPortal technology as such, just put their code into a template).

Also, I can't logout. Pressing logout takes me to the page that says I have logged out but in reality going back to any page shows I'm still logged in and I have access to admin page and everything.

You may need to wait a few seconds before navigating away, log out happens via Javascript running on the logged-out page.

I guess since my account is tied to my facebook login (since the v7 installation) I need to login through facebook?

Running 'reset password' on the account will reset it. You may need to remove permissions to your app from your own Facebook account, Facebook is very aggressive about establishing and maintaining its logins.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#86288
Avatar

Well-settled

I added the {$EXTRA_HEAD}, it had the old style {EXTRA_HEAD} but nothing gets added in the source code. I'm attaching my current header template if you can take a look. I know it's very crude, bear in mind it's been modified and patched for a few years now so it's not a coding masterpiece lol.

Attachment
» Download: HEADER.tpl (10 Kb, 224 downloads so far)
Back to the top
 
Posted
Rating:
#86289
Avatar

Actually {$EXTRA_FOOT} in FOOTER.tpl.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#86300
Avatar

Well-settled

You, sir, win the Internets. Works as intended!  :thumbs:  :thumbs:  :thumbs:
Back to the top
 
Posted
Rating:
#86413

Honoured member

In version 7 the facebook integration was acomplished through edit boxes in the Setup / configuration / features module.  Has that changed in version 8, and now have to install an addon?  I don't see any where to enter my Facebook info so I can post directly to my wall anymore.
Back to the top
 
Posted
Rating:
#86418
Avatar

Admin Zone, Setup menu. It steps you through the process, taking you to the config section once your site is granted access (where the options should then magically appear).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#86419

Honoured member

Would you be talking about the setup wizard?  Did I miss something during the setup process?
Back to the top
 
Posted
Rating:
#86422
Avatar

Well-settled

One of my members tried to connect his current site account to his facebook account and keeps getting the following error:

Critical error - bailing out

 This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
 Unfortunately a query has failed [SELECT specific_permission,the_page,module_the_name,category_name,t
he_value FROM ocp4_gsp WHERE (group_id=9) UNION ALL SELECT specific_permission,the_page,module_the_name,category_name,t
he_value FROM ocp4_msp WHERE member_id=582 AND active_until>1338552404] [MySQL server has gone away] (version: 8.1, PHP version: 5.3.8, URL: /start.htm)
 Details here are intended only for the website/system-administrator, not for regular website users.
  If you are a regular website user, please let the website staff deal with this problem.

 Depending on the error, and only if the website installation finished, you may need to edit the installation options (the info.php file).

 ocProducts maintains full documentation for all procedures and tools. These may be found on the ocPortal website. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.
Back to the top
 
Posted
Item has a rating of 5 (Liked by BobS)  
Rating:
#86423
Avatar

Community saint

Hi Chipster,

On the Setup tab drop-down menu you should see a "Facebook syndication / login"

Image attach (hoping you can scan-read it):

Back to the top
 
Posted
Rating:
#86424
Avatar

Oh I forgot to mention -- this is now a non-bundled addon (the Facebook addon), it used to be bundled.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#86425
Avatar

Palanthas said

One of my members tried to connect his current site account to his facebook account and keeps getting the following error:

Critical error - bailing out

 This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
 Unfortunately a query has failed [SELECT specific_permission,the_page,module_the_name,category_name,t
he_value FROM ocp4_gsp WHERE (group_id=9) UNION ALL SELECT specific_permission,the_page,module_the_name,category_name,t
he_value FROM ocp4_msp WHERE member_id=582 AND active_until>1338552404] [MySQL server has gone away] (version: 8.1, PHP version: 5.3.8, URL: /start.htm)
 Details here are intended only for the website/system-administrator, not for regular website users.
  If you are a regular website user, please let the website staff deal with this problem.

 Depending on the error, and only if the website installation finished, you may need to edit the installation options (the info.php file).

 ocProducts maintains full documentation for all procedures and tools. These may be found on the ocPortal website. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.

I'll get back to you.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#86426

Honoured member

Hmmm, I'm still not seeing it.  If it is a graphic maybe it isn't markup with any alt text and my screen reader is just skipping over it.  I'll have my wife look when she gets home this evening.
Back to the top
 
Posted
Item has a rating of 5 (Liked by BobS)  
Rating:
#86428
Avatar

Community saint

chipster said

Hmmm, I'm still not seeing it.  If it is a graphic maybe it isn't markup with any alt text and my screen reader is just skipping over it.  I'll have my wife look when she gets home this evening.


As Chris pointed out, it is no longer bundled, it must be installed as an addon before you can see the addition to the menu. Check if it was properly installed.

Jean
Back to the top
 
Posted
Rating:
#86430

Honoured member

Ok, gotcha.  I tried using the installer in "Structure / Addons" and selecting the Facebbok Addon from the drop down list, but keep getting an error.  I'll download it directly and try that way.  Thanks
Back to the top
 
Posted
Item has a rating of 5 (Liked by JeanLiked by BobS)  
Rating:
#86431

Honoured member

Ok, got it.  I downloaded the tar file and uploaded it to my site and I'm seeing the Facebook syndication / login option in setup now.  Thanks
Back to the top
 
Posted
Rating:
#86433

Honoured member

Ok.  What have i done wrong.  I downloaded the tar file and uploaded it to my site, logged in and went through "Setup / Configuration / Features / Facebook" and then went to "configuration / facebook" and authorized it and all went well.  However, now when I go to my site i can't log in using my regular log in.  Haven't tried using my facebook log in, but can't see where that would recognize me as admin.
Back to the top
 
Posted
Rating:
#86434

Honoured member

I think I see what is happening.  Does it now give the choice of logging in with either your facebook or your site's account?  I'm seeing the verbage, but no way of selecting which I want to choose and it defaults to using my facebook log in.  anyway to change the defualt?
Back to the top
 
Posted
Rating:
#86435
Avatar

Community saint

chipster-

This has been discussed before. Once you log on using Facebook, you are pretty much stuck with that option. This makes sense in that someone who joins using their Facebook account is unlikely to ever want to create an ocPortal login.

To re-enable your regular ocPortal login, you will need to do a password reset on your account and avoid logging in using Facebook in the future.

That is at least my understanding.

Bob

Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand