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

Facebook support

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#77866
Avatar

Community saint

Log in to ocPortal using your Facebook account

Crud.  I had to comment out that whole function so it was just a blank function in order to even log into my site.

Now when I go to admin->addons I get

Code

PHP ERROR [1] Call to undefined function get_facebook_cookie() in sources_custom/users.php on line 51 (version: 7.1.5, PHP version: 5.2.17, URL: /adminzone/index.php?page=admin_addons&type=misc)

So I can't even remove the addon.

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77872
Avatar

Community saint

Chris-

I noticed in the commit log that the new Facebook add-on provides support for syndicating to Facebook and Twitter accounts. Is the syndication to FB only available to the account or can you syndicate to a page? I'm not even sure if that is supported in their API but thought I'd ask as we post on a fan/brand page.

Bob
Back to the top
 
Posted
Rating:
#77891
Avatar

ocStaff (admin)

@arbo, I think you overwrote /sources_custom/facebook_connect.php with my new file not /facebook_connect.php. Easy mistake to make but they are different files.

@bobs, yes syndication to FB page/user/group walls all possible. Members can have it post to their own user walls.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77894
Avatar

Community saint

Thanks Chris.  I put it all back, and the facebook_connect in the right place.

No errors.

But then again, nothing looks different on the site, at all.    Put in fb api and such.   


Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77895
Avatar

ocStaff (admin)

Try clearing the block cache.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77901
Avatar

Community saint

Yeah, cleared that cache, still looks like before I added the addon.   Is there potentially some permission somewhere for this?

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77903
Avatar

ocStaff (admin)

Hmm, no, the addon includes various template edits that add the Facebook login button. I suppose if the Facebook JS isn't loading (should be loaded in FACEBOOK_FOOTER), or those templates aren't there, or the FACEBOOK_FOOTER template isn't injected (should be via sources_custom/facebook_connect.php).



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77904
Avatar

Community saint

hmm, I have no sources_custom/facebook_connect.php

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77905
Avatar

Community saint

I looked at the built in facebook 'addin' and the extended one I installed, neither puts a facebook_connect.php in sources_custom.   So perhaps I deleted that when I was trying to get it working yesterday.

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77906
Avatar

Community saint

I looked at the built in facebook 'addin' and the extended one I installed, neither puts a facebook_connect.php in sources_custom.   So perhaps I deleted that when I was trying to get it working yesterday.     

No, just downloaded a 7.1.5 zip and that file is not there.    Confused….

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77908
Avatar

Community saint

Got a message from a user they got an error related to a missing facebook_connect.php

So I removed 'facebook' and 'facebook support' addons.    Maybe will try again later.

Thanks

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77909
Avatar

ocStaff (admin)

I think one point of confusion here (which we're fixing in v8!) is that there are two facebook addons. Here we're talking about the non-bundled one, which you'll find in the addon directory. The builtin one handles syndication to facebook, not facebook logins.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77910
Avatar

Community saint

I see.

Well, I removed both of those.   And in looking at the files they list as what get's installed, neither lists a sources_custom/facebook_connect.php
so that is where my confusion comes from.   If that file is different than the one in /  then where does it come from?  

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77915
Avatar

Community saint

Chris Graham said

@bobs, yes syndication to FB page/user/group walls all possible. Members can have it post to their own user walls.

This is great. Now we just need a G+ API that is writable and all will be grand.

Bob


Last edit: by BobS
Back to the top
 
Posted
Rating:
#77918
Avatar

ocStaff (admin)

Arbo said

I see.

Well, I removed both of those.   And in looking at the files they list as what get's installed, neither lists a sources_custom/facebook_connect.php
so that is where my confusion comes from.   If that file is different than the one in /  then where does it come from?  

Unless I'm going crazy, the Facebook addon does. Yes, confirmed, it is in Facebook support - ocPortal



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77934
Avatar

Community saint

Ok, I installed the bundled facebook stuff.  Went into config and entered API and such.

Then installed the facebooks support addon, and now I can get a 'facebook friends' window… but nothing else looks different.  Login or footer or anything.


Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77935
Avatar

ocStaff (admin)

Overridden sources_custom/users.php is meant to call up initialisation of sources_custom/facebook_connect.php, which is supposed to call up the need for FACEBOOK_FOOTER to be added to the footer, which injects the Facebook JS, which the XFBML markup in the overridden LOGIN_SCREEN.tpl (etc) template uses.

I'd check if the Facebook footer stuff is in the page markup. And I'd check the XFBML is in the login screen. That'll give you some guide on where it's sticking at.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77937
Avatar

Community saint

Yeah, none of that is in the page source.   

This is causing an unneccessary headache.   I gotta go do something else for a while.

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77938
Avatar

Community saint

well, I noticed that it does do something… that may be the built in part.

In the box where it shows facebook fans, I can like and unlike the facebook page that I set it up to link to.   so that part is logged into facebook.

But no log into air-rc via facebook can be seen.

Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77939
Avatar

ocStaff (admin)

The XFBML on the login screen is merely controlled with this in the overridden LOGIN_SCREEN template…

Code


   {+START,IF_NON_EMPTY,{$CONFIG_OPTION,facebook_appid}}
      <hr />

      <p>{!facebook:LOGIN_USING_FACEBOOK}</p>

      <span xmlns:fb="http://api.facebook.com/1.0/">
         <fb:login-button scope="email,user_birthday"></fb:login-button>
      </span>
   {+END}
So the only cause for this not being there would be on of:
  • template cache stale (unlikely)
  • facebook_appid option not filled in
  • template overridden separately in your theme



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:
 Add topic 

Quick reply   Expand