i have used Drupal for Facebook fb 6.x-3.1 module in my site. but after login user is not redirect to account page but its only on login page, and if you click on home page user is logged in the site, i want to user to be redirect to my account page directly. please help me what changes are necessary. i am trying to solve this since last 4 days. but cant find any proper solution.

CommentFileSizeAuthor
#13 facebook-php-sdk.zip24.46 KBaks_richa

Comments

filsterjisah’s picture

subscribing...

same problem here:
1) If I click on the connect button the page reloads (first reload). Login seems to have failed because we are still at the login page (but it's not failed).

2) If we refresh the page or click another button (second reload), I 'm logged in

filsterjisah’s picture

seems to be a caching issue.

Dave Cohen’s picture

Try the latest dev copy. I've checked in some code to work better with Drupal's normal caching.

filsterjisah’s picture

Thanks Dave, I'm sorry but I'm at another location now (other client) and cannot confirm that the dev version fixes it... Anyway, this is how we fixed it: we added a workaround that adds a random number as get parameter to the redirect url:

FB.login(function(response) {
  if (response.status == 'connected') {
    var randomnumber = Math.floor(Math.random() * 10000)
    window.location = Drupal.settings.fb.reload_url+'?rd='+randomnumber;
  }
  }, {scope:'email'}
);
aleada’s picture

I have the same issue.
Where did you add the code above?

filsterjisah’s picture

We used a custom button in our template to connect and added an onclick function that triggers code above. (not the default user login page / block)

Dave Cohen’s picture

Category: bug » support
Status: Needs work » Fixed

you could try the "append hash" option on admin/build/fb/settings.

aleada’s picture

I installed the dev version 6x and works without any problem.

saurabh.arya’s picture

Hi amatech,

Which version exactly?Any special thing to keep in mind while doing it?

Thanks,
Saurabh Arya
skype - saurabh.ar

aleada’s picture

6.x-3.x-dev tar.gz - 2012-Jan-04
I just updated the module, ( keep a backup for db/files ) and I tested many times after update.
You can try this url if you want to see it working
http://www.hellascatalog.gr/user

thankisk’s picture

Working on same project... the above suggested module is not working. one more thing if the user is not exist then the page is reloading using but if the user is exist and if we provide correct details for user login then page is not reload... any idea? please help.. :(

vishalchavda’s picture

Hello

I am getting a similar problem with 6.x-3.x-dev tar.gz - 2012-Jan-04.
When an anonymous user clicks on the FB connect button, it does nothing i.e. does NOT display the FB Login popup. It only does this for registered users.

I have cleared my cache, removed FB like block, still does not work.
Any help with this please would be great.

Vishal

aks_richa’s picture

StatusFileSize
new24.46 KB

hey #vishalchavda please try to use 6.x-3.1 2011-Sep-21 version its stable version. i have used and its working very well in my site..
and below attached PHP- sdk version.

please take backup of Db and file.. and also uninstall whole module and thn use this module. hope this will work for you...

aks_richa’s picture

hey #vishalchavda please try to use 6.x-3.1 2011-Sep-21 version its stable version. i have used and its working very well in my site..
and below attached PHP- sdk version.

please take backup of Db and file.. and also uninstall whole module and thn use this module. hope this will work for you...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

joie’s picture

Version: 6.x-3.1 » 6.x-3.3
Status: Closed (fixed) » Active

Hi all,

I am seeing this same problem for both login and logout. I've read the docs and double checked my setup. Everything else seems to be working fine but from the login page (/user) if I click the Facebook login button it logs me in fine but I remain on this page - I guess it should do a full page reload so I see my profile details. And when logging out, the /logout link does its job but the page doesn't refresh so looks like I'm still logged in.

(the redirects work fine on the site if I disable the fb_connect module)

I'm running Drupal 6.26, and the Facebook PHP SDK 3.1.1. I've tried using fb version 6.x-3.3 as well as the latest 6.x-dev, but both seem to have the same problem.

I'm happy to help fix it - though I'm not a Drupal expert I'm afraid. Any clues as to where I should be looking?

Thanks

Joe

Dave Cohen’s picture

Status: Active » Fixed

Please don't open issues that have been closed for months. Your problem calls for a different fix. Instead, submit a brand new issue. In that issue also say whether you've enabled the fb_user.module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.