after my visitors log in using Facebook connect, they need to log again when clicking on a like button - facebook

I'm developping a contest for my website.
http://www.abcroisiere.com?jeu=1
People can subscrire using Facebook connect. At the last page of the contest you can click on a like button.
But the visitor has to log in again in Facebook for that. Is it normal ? Is there something I'm missing ?
regards,

If the user was logged out of Facebook, goes to your site, and logs in to Facebook via the Login button on your site, the Like button won't be aware of that, so will still think the user needs to log in before they can complete the Like action
If this edge case is important to your app; refresh or replace the Like button after the user logs in. When it refreshes it will be aware of the user's login and won't prompt the login dialog if the user clicks it

Related

Problems with facebook share, how does login method influence share behavior?

I have an ios 6 app with a facebook login on the first page. I am using facebook-sdk 3.2.
The login process is similar to the scrumptious tutorial.
So if there is a session, the user is logged in automatically, else he has to press login.
I have also a share dialog. It is similar to the share tutorial.
If a user has filled in his facebook login in the iOS-Settings,
there is a native login dialog (the popup box). If the user logs in
and touches the share button there is the native share dialog.
If a user has not filled in his facebook login in the iOS-Settings, there is a fast-app-switch-login. If the user logs in and touches the share button he ends up in the fallback share dialog.
Now to the odd part:
If a user goes way 2, closes and restarts the app, he gets logged in automatically if the facebook session exists. If the user then touches share, the native share dialog (expected the fallback share dialog) pops up and the user is asked to fill in his credentials in the iOS-Settings.
Is there a way to get the behavior consistant? I don't care if there is the fallback share dialog or the native dialog with the request.
I believe that facebook works on a single sign-on experience. When user goes the #2, it also logs the user into facebook.

Facebook log in - auto refresh page

I have a problem. When somebody is not logged in facebook and "likes" with the facebook plugin, he is asked to log in facebook. He does it and he has to click on "like" again.
I would like in this situation, just after the guy has logged in to auto-refresh my page (for updating other infos). Is there a way to do that ? Should I use a kind of listener of FB loggin ?
In that case, I think no - if the login was processed by your own app using the Javascript SDK you could detect the login (which is a necessary part of the login flow) and put something in your login-handling code to refresh the Like buttons so that when they refresh they're aware the user has logged in.
In the case where the user triggers the login via the like button itself, I don't think there's any way to detect this event

How does a Website with Facebook login work practically?

If I create an app for my wesite under the tab 'website with Facebook login' - how does this work for users accessing my site?
Do users HAVE to sign in with Facebook to view my site?
Or would they only be prompted to sign in if they were not signed in and they clicked my Like or Send buttons (the only button's we'll have)?
If a user doesn't click the like or send - will they be affected?
As much details about the user experience as possible wouldbe great. Cheers all!
Facebook login is usually just a wrapper on top of your website that allows you to get Facebook user details if they use Facebook. You will still need a system to track who is actually logged in to your site and they will still have to click the "Login with Facebook" button.
On the other hand, the Like and Share buttons are independent as they simply send your website data to Facebook and Facebook does not send anything back to you.
You do not need Facebook login functionality to put Like or Share features on your page.

Facebook Logout Button for My Website (Not Facebook Connect Logout)

I was wondering if it is possible to create a "logout" button for my site that will log a user out of facebook and then redirect them to a specific URL ? Let me elaborate, I work in a retail store and I have a mounted iPad so customers can "like" our facebook page (by using a traditional facebook like button). Currently, when customer's select "like" it opens a new window where facebook asks for a username and password, and then immediately after the customer hits "Submit" it re-directs them back to a specific URL where I say "thanks for liking us"...the only problem is that it keeps them logged into facebook.
I'm hoping to put a logout button on my "thank you for liking us" URL so they can click that to logout (without going back to facebook) and then it re-directs back to the page with the like button for the next customer.
I have tried facebook connect but it's so many steps because users have to allow the app etc. that I'm hoping to avoid that. Maybe a way that clears the facebook cookies or anything else? I'm so out of ideas that anything will help!
Include the Facebook JS SDK and then call FB.logout() either on click of the link, or on the thank you page.
Tested, not working even with FB.logout(), because once you logged in facebook.com, then fb cookie will be injected automatically, there's no way to remove it unless you've logout from facebook.com.:/

facebook logout without sdk

How can I log out user from facebook without authorizing him myself?
I have a public IPad which people come to, authorize in my application and do stuff.
One of the links leads to m.facebook.com/sharer.php?u=..
When the user presses it, he is redirected to facebook, which asks for his login/pass and makes the share.
Later then the user press Logout on my site
I need to log out him from facebook some way,
so the next user who will use the ipad and press share will post to his wall and not to the first user's .
Same happens when i provide the iframe version of the Like button.
The first user logs in to facebook, makes the like, logs out of my web site,
and the next user see the like button pressed.
Thanks in advance ;)
I've just done some work with facebook recently on one of my projects and I used to visit a url to log them out it was something like
http://www.facebook.com/logout.php?redirect=your_url
It may not exactly be that as its off the top off my head but after visiting that the user got redirected to my site again logged out of facebook.
You may also have to provide a token.
Hope this helps!