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

[ISSUE] Facebook logins/logouts

Login / Search

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

Community saint

One thing I should mention, it is not mobile friendly as far as I know. Facebook logins do not work on phones.

ocPortal Websites. Development, hosting and themes for ocPortal powered websites.
Back to the top
 
Posted
Rating:
#73221
Avatar

Community saint

 I have on facebook a own page for every site. So for our foundation site we have on facebook the following page :  Stichting Foundation Youth Care - Non-Profit Organization - Groningen | Facebook

That numer in the url you will need in the ocportal box to define from with place you want to got the data.

I have only made a friends block. Someone other will test the login possibilitys from facebook to the ocportal site.


digiflash | Photography,Webdesign and digital art community (dutch)
Back to the top
 
Posted
Rating:
#73222
Avatar

Community saint

ocportaol change the url  :(


digiflash | Photography,Webdesign and digital art community (dutch)
Back to the top
 
Posted
Rating:
#73224
Avatar

Community saint

Brian Hay said

If you go to your facebook wall and then look at the url your id is the number at the end.

The URL for my wall is Facebook.com/account_name which  I suspect is what the instructions for the Facebook integration configuration is warning about. I just can't seem to find "discussions" as mentioned.

Bob
Back to the top
 
Posted
Rating:
#73226
Avatar

Community saint

Okay. I just tried this with my development site. I got an App ID and a secret code but I did not receive an API key. How do I go about getting this?

Bob

EDIT: Nevermind. After clicking on everything on the Face book site I sees the API key and App ID are the same. I had almost tried using the App ID for the API key on my own but chickened out. Not sure why I am so risk-averse lately.

I do have my shiny new Facebook log-in buttons so that makes me happy. Now, just to sort out User/Target ID.


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

Community saint

Hmmm…I am getting more frustrated by the minute although I am sure the issues are due to my ignorance.

I have the nice Facebook login buttons but when I try to use it, I get the following error:


What have I not done right?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#73236
Avatar

Community saint

Okay, I think I got the Facebook login sorted. I am not sure if I missed stuff in the Facebook documentation or if it was not included (nah, it must have been).

Bob


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

Community saint

This is an absolute nightmarish mess.

I can log into my ocP account only if logged out of Facebook and I clear cookies for the site. I logged in as admin and confirmed that different emails were used for my Facebook account and ocP account. However, as soon as I log into Facebook, I am logged out of Admin and appear as Guest. And if I log in using the Facebook button, I don't have access to Admin.

To top it off, I can't see how the connection was made since I used Chrome to test the Facebook log in and never used the Facebook login in Safari.

How to I decouple my Admin account from the Facebook login in Safari? I was only just testing that the Facebook login worked in Chrome - now I wish I had not.

Bob

EDIT: This really makes no sense.

I deleted the original App on Facebook and then created a new one (all this in Firefox).

I logged into my site as admin (after clearing cookies) and entered the information in Feature options and logged out.

I used Chrome to log in using the Facebook login button to generate the token and then quit Chrome.

Using Safari, I tried logging in as Admin after clearing cookies for the site and while logged into Facebook in Safari. I am logged in momentarily and then logged out.

How the heck do I clear up this mess and why are things being linked even when using separate browsers. I even tried logging in as other members but no go - the ocP login is effectively rendered useless.



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

Community saint

I think I stumbled across an easy way to find the Facebook user ID. Look in your cookies for the value associated with the c_user cookie.

If someone who has already determined their user ID could confirm this, it would be great.

Bob


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

Community saint

Harry-S,

Are any of the problems I am having with getting the Facebook add-on working similar to problems you had. Specifically, I am unable to be logged into my Facebook account and an ocPortal user (non-Facebook) at the same time in the same browser. I always have my Facebook page open and don't relish the thought of having to run a separate browser to be able to be logged into both Facebook and my site.

If your problems were similar, can you please explain what you did to address them?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#73275
Avatar

ocStaff (admin)

We've had big problems with logging out from Facebook too. It seems Facebook's code is really buggy (or browsers are) and if you tell it to log out sometimes it just refuses. This may be made worse by the code we have in there to work around a bug where Facebook was not saving its login cookie (we forced the issue, so it's possible that could have left a cookie Facebook can't then delete). Generally the problem is that Facebook decides on it's end to keep hammering once it has been given permission, which it can do because we give it a tunnel into the site via the Facebook code we load up.

Possibly logging out on the site then clearing your
cookies before going back to the ocPortal site would work.

It is possible to disassociate an account with Facebook. I think we allowed it via the reset password feature (?page=lostpassword), it will break the association as part of the reset.



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

Community saint

Hi Chris-

I definitely get the sense that there is more at play here than just your code but it is really confusing.

I can kind of understand that logging out from the site might log you out of Facebook but it is really puzzling that logging into the site via Facebook forces a logout if someone has their Facebook page open. That makes it seem like Facebook thinks these are dual log-ins to their site when, in fact, the second log-in is only an authentication to another site.

I am unsure what I am going to do about this. It may mean losing the Facebook add-on which would be unfortunate since I know that many of my members are on Facebook and I'd like to take advantage of the features of this add-on but I think people might be very annoyed at being logged out of the main Facebook page after logging into the site using their Facebook credentials.

Thanks for your help.

Bob
Back to the top
 
Posted
Rating:
#73298
Avatar

Community saint

I have reluctantly removed the Facebook add-on. It is simply not ready for primetime.

I thought things would resolve themselves when I deleted the (newly-found) member created by the Facebook login. Instead, things went from bad to worse. I cleared the cookies for this site and I tried logging in with my Admin account and got a "Critical error - Bailing out" message stating that the login action had exhausted memory resources. This really makes no sense but I persevered anyway.

Next, I again cleared the cookies for the site and attempted a login from thee start page. My login was rejected due to a bad password. So I tried again being extra careful to check my typing. Still no go. I fired up phpMyAdmin only to find that the salted password for my long-standing (from the original installation) had been changed to the Facebook user number and that the password compatibily scheme had been set to Facebook.

Okay, maybe just a glitch after first removing the offending member created by the Facebook login. I fixed the issues in the _f_members table and tried to login. Same thing happens: first a critical error due to exhausted memory and then unable to login because the password has been tied to Facebook.

I'd love to use the Facebook add-on as I am pretty sure the Facebook log-in would be a popular feature for my site and I can see using some of the other features as well. But I certainly cannot subject potential members to this level of frustration.

If anyone has any suggestions, I am all ears. Did others issues with Facebook simply go away after uninstalling and reinstalling the add-on?

I know version 8 is a long ways off, butI can hardly wait till Chris and his crew implement a fully-integrated fix for both Facebook and Twitter.

Bob
Back to the top
 
Posted
Rating:
#73319
Avatar

Community saint

Sorry to hear of all your troubles Bob. I am slow to respond because I have company from out of town and have not been online. But it lead me to a discovery…which I already knew but had long forgotten.

He clicked on the login with Facebook, it created an account for him but he can not log into it, the screen just keeps flashing and I think I know the cause and possibly the root of your problems too.

You mentioned using it across multiple domains so you are using it in a multi site network like me? If so you can only install the whole addon on the top level domain and then manually add just the blocks to the rest of the domains or it makes a mess of logins.

To clean it up you have to uninstall it and anyone who used Facebook to create an account after the problem started has to have their account deleted and the app removed from their Facebook account (there is a link near the bottom left of your page) and then create a new account.

I keep a separate admin account and to use it I log out of both my site and facebook, log in as admin on my site and then I can log back into facebook without it affecting my admin login.

I don't think anything gives me more grief on my sites than Facebook does, I kinda wonder if it is worth it. I can have it working perfect one day, touch nothing and go to my site the next day and it a mess. It is almost always a Facebook glitch (not ocPortal) that fixes itself before long but still. It is a reflection on me when people visit and my site is not functioning right. They don't know it is an element beyond my control.

ocPortal Websites. Development, hosting and themes for ocPortal powered websites.
Back to the top
 
Posted
Rating:
#73323
Avatar

Community saint

Hi Brian-

Thanks for your comments.

I don't have a M.S.N. I am just using the same Facebook account for both my main and development site. My plan was just to confirm everything worked properly on the development site and then install and use the same settings on my main site.

I agree that the login/logut issues seem to come more from Facebook rather than ocPortal but there is something still amiss with the code. The fact that an existing account was hijacked with the replacement of the password by the Facebook user seems more code-related than Facebook-related.

I am confident that when Chris and his crew get around to fully-integrating Facebook (and Twitter) that the whole process will more coherent although they will still be at the mercy of Facebook making changes on a whim.

I also agree that it is a reflection on my site so I have chosen to forego the Facebook add-ons until there is some level of reliability. I was hoping you were going to say that everything got better upon an uninstall/reinstall but it sounds like the integration is just too flaky and could potentially put off my members.

Thanks again for taking the time to respond.

Bob


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

Quick reply   Contract

Your name:
Your message: