login with same fb account, on PC it worked normally...but when login on Android or iPhone, it will become the fb account as set for Access token...not the fb account logined.
Access Token Debugger on developers.facebook.com did not report any error, the setting for Site URL and Mobile Site URL are same.
There is an error on Drupal site...
BAD FACEBOOK CALLBACK URL
Your Facbook canvas page (or page tab) is configured for the previous version of Drupal for Facebook (modules/fb)
But I did not create Facebook Canvas nor Page tab on developers.facebook.com, where is the "configured for the previous version"...
one thing just came across...will it be the problem that I had installed "Facebook social plugins integration" earlier, but it is nothing to do with canvas neither...
any suggestion...
Thanks,
Comments
Comment #1
mubiesam commentedThought that Canvas problem maybe from settings.php, Read again the README.txt, decided to disable fb_canvas.module to simplify the problem...but the error BAD FACEBOOK CALLBACK URL is still there...
Comment #2
mubiesam commentedTried again, but both PC and mobile have the same problem...don't know why it was differently last night, can not reproduce.
If token is "Select from previously saved tokens", no matter which fb user account logined, it will always turn out to be the fb user of "previously saved tokens", not as the logined fb user.
If "Do not use a saved token" is chosen, then a broken icon with "Connected as !name." is shown but no one logined.
Comment #3
mubiesam commentedmodules/fb expects PHP version 5.4 or higher for correct json decoding...is this the cause of above mentioned problem?
Comment #4
Dave Cohen commentedTake a look on developer.facebook.com. Under both basic and advanced tabs you will see some URLs that facebook can use to reach your server. What values are there?
The latest README.txt includes some information how to properly set up those URLs for canvas pages.
Comment #5
mubiesam commentedI installed a new site on another hosting which provides PHP 5.4, the login problem did not happen.
So the issue of login problem seems is from my current hosting (Pantheon) which only available with PHP 5.3, do you think the proposed work around in https://www.drupal.org/node/2209795 will help?
Canvas page should be another issue, I'll follow the README.txt to try it again, but my main headache is the login problem at the moment...
Thanks,
Comment #6
Dave Cohen commentedYes, please try the patch in that thread.
I'd like to know for sure whether the regexp there actually works for all cases.
Comment #7
mubiesam commentedUnfortunately, the problem remains after applying the patches for all 3 files, plus updated to the latest dev you just released.
Pls give a try to our site http://johocen.com/zh-hant/user , no matter which fb account you connect, it will always login as JOHOCEN_1
In status report,
Drupal for Facebook Default Token ...got a big question mark and a broken icon.
Drupal for Facebook PHP JSON decoding 5.3.17
modules/fb expects JSON_BIGINT_AS_STRING for correct json decoding.
Any suggestion...highly appreciate
Comment #8
mubiesam commentedNotice:Undefined variable: data in fb_http_parse_response() (../sites/all/modules/fb/fb.module line 1202)。
fb_json_decode is still a problem...
Comment #9
mubiesam commentedIt's really driving me crazy...
After trying so many possibilities, still got the same problem...
it always happened the 2nd time onward, no matter which fb account to login, it will login as administrator.
Hi Dave, can we pay you to help us out...please.
Comment #10
socialnicheguru commentedI am getting this error too.
I am on my PC and have not tried mobile
I am logged in as user 1.
I thought user 1 should be ignored?
error: Notice: Undefined variable: data in fb_http_parse_response() (line 1202 of /var/aegir/platforms/7/modules/all/fb/fb.module). =>
it looks like data is a string of 0 length.
Here is what I get in devel:
20: fb_http_parse_response() (Array, 2 elements)
file (String, 52 characters ) /var/aegir/platforms/7/modules/all/fb/fb.module...
args (Array, 1 element)
0 (Object) stdClass
url (String, 260 characters ) https://graph.facebook.com/me?access_token=CAAJ...
status (String, 5 characters ) Done.
code (Integer) 0
chunk_size (Integer) 1024
data (String, 0 characters )
request (String, 338 characters ) GET /me?access_token=xxxxtoken
options (Array, 20 elements)
socket (String, 28 characters ) ssl://graph.facebook.com:443
flags (Integer) 6
uri (Array, 4 elements)
running_time (Float) 0.22784399986267
bytes_sent (Integer) 338