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:
#77940
Avatar

ocStaff (admin)

Log in to ocPortal using your Facebook account

Regarding the footer, if you have FOOTER.tpl overridden in your theme but not:

Code

{$EXTRA_FOOT}
in it any more, that would stop FACEBOOK_FOOTER being injected.



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:
#77941
Avatar

Community saint

Chris Graham said

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

[ From “Facebook support” ]

Yeah, I thought it would be that easy.  I went back and cleared ALL caches again.  I went to my server and saw previous there was a login_screen.tpl cached version in my site theme directory… I removed it.  There are no *.tpl files in my own themes or theme_custom directory, they are all in default.

So I'd think that would get rid of any possiblity of it being overridden.   And the appid is filled in.  admin zone > configuration > Feature Options > social networking > facebook apid.

Makes no sense to me.

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

Community saint

oops, missed the last post.   No FOOTER is not being overridden.  Checked and it has EXTRA_FOOT in there.

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

ocStaff (admin)

There's a flaw in the addon actually that there are separate API ID and App ID settings, even though they are the same. I think at one time they were separate on Facebook, but not any more. Are they both filled in, with the same setting?



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:
#77944
Avatar

Community saint

You are a problem solver!    That made the little 'connect' button appear.

I did not realize api and appid were the same.  Damn.

Now I've got to figure out how to set the rest up, as when I click on the connect button it tells me 'ocportal is under construction please try back later'.   


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

ocStaff (admin)

Facebook will connect back to the server to verify it, so the site must be open.
EDIT: That might be nonsense lol. Because I have it working behind a firewall.



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:
#77948
Avatar

ocStaff (admin)

Btw, useful OcCLE command to debug a config option:

Code

cat /etc/facebook_appid



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:
#77949
Avatar

Community saint

Yeah it says something about connection url in the error, but I can't find that in facebook to enter.  I tried the other guys site and it didn't log me in there either, but at least his didn't get an error on the FB popup to log in.

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

ocStaff (admin)

Might not be related, but it's worth noted it's strict that the Facebook app URL must match your base URL precisely.



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:
#77952
Avatar

Community saint

Yeah I tried that.   I am noticing some funny things.

First, on the main page, you get a 'facebook connect' button.  If I go over to say chat or FAQ page, it is a 'facebook login' button.

Does anyone out there have this working?

Also, I was reading FB's documentation… they show something different for logging on and for registering.   Should there be two different things on ocportal for that, or does ocportal use the login to register people?

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

ocStaff (admin)

First, on the main page, you get a 'facebook connect' button.  If I go over to say chat or FAQ page, it is a 'facebook login' button.

Not sure on this – should just be a login. Did you add anything of your own maybe? Or is it one of the main_facebook_* blocks?

It should work, but I'll be the first to admit it's not easy to get right. There are so many dependencies and interconnections in all this.

There's no registering thingie. That's quite a new thing FB have released, and it's not so popular because it's kind of a bit defeating the point because it's an unhappy medium.



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:
#77954
Avatar

Community saint

Yeah, I saw where 'registration' was different.

Yeah, sometimes I get 'connect'



and sometimes 'login'



If you go to FB and make sure you are logged out, then hit the 'connect' button it gives:



Then type in your fb login and pw and get:



Now if you go to to say the 'Guide' page where you actually get the 'login' button and hit that I get:



type in your fb login and pw and the popup goes away, and ocportal 'reloads' like it should be logging you in… but comes back with you not logged in and the 'login' button there.

Sorry if all this is a bit much, I figure the more examples/documentation of the issue the better.

If anyone has this working, I'd like to know, and see it, and hear what they have done to make it work.

It's really not an important part of the stuff I want to do with my site, but it would be cool and handy.

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

Community saint

Arbo said

It's really not an important part of the stuff I want to do with my site, but it would be cool and handy.
That's the way I feel and the reason I'm waiting until others have worked out the kinks.

I believe success relies on swinging a chicken in a bog over your head while you stand on your left leg facing east.  :)

Thanks for all the work you are doing to debug this.

Bob
Back to the top
 
Posted
Rating:
#77958
Avatar

ocStaff (admin)

Chris Graham said

Might not be related, but it's worth noted it's strict that the Facebook app URL must match your base URL precisely.

Did you check this? Must be exact, e.g. no www/no-www difference.



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:
#77959
Avatar

Community saint

well, you can get to my site via air-rc.com or www.air-rc.com  .. so which is 'base'?

it is set to www now, so I can get rid of that in the fb setup and try.

Man, I have been searching the web for information on the FB api.   Water is easier to find in the gobie…

Will keep pinging at it until I start having nightmares about the guys that started FB.  ;)

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

Community saint

Perhaps I forgot to ask a very important question.

A user is already on your ocportal system.  they choose to log in via FB.  How does ocP reconcile the FB account to an already registered users account?

And if they have never been on the site, how does it take info from FB and 'register' them on the ocP site?


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

ocStaff (admin)

well, you can get to my site via air-rc.com or www.air-rc.com  .. so which is 'base'?

You need to make sure either people are educated to only use one, or put a redirect on the other. It's good advice anyway.

A user is already on your ocportal system.  they choose to log in via FB.  How does ocP reconcile the FB account to an already registered users account?

When logged in the button is also there, in which case it connects accounts and informs the user they must henceforth log in using Facebook. But they can undo it via resetting their password.



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:
#77977
Avatar

Community saint

Ok, I'm still not sure about the 'magic' of it, but I guess I'll eventually figure it all out.

thanks

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

Community saint

Noticed an interesting thing just a bit ago.   With the built in facebook stuff set up, I could not add a blog post.  When you hit save it redirects to facebook for you to log in, then it comes back to ocportal and says it could not post it.

Though the entry does exists, just the text of it is an error message.

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

ocStaff (admin)

Ergh. What was the error?



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