Topic-icon Fblogin using fb v1.0 api

Active Subscriptions:

None
11 years 3 months ago #51557 by evil
Hello,
for a strange reason fblogin is using deprecated v.1.0 api for logging in users.

That causes many issues to user on mobile devices.

Is there a reason why they are forced with the old api?
The topic has been locked.
Support Specialist
11 years 3 months ago #51559 by mel
Replied by mel on topic Fblogin using fb v1.0 api
JFBConnect is built in such a way that we will try to use Graph API v1.0, if available, since it's actually more flexible. However, when Facebook pulls that trigger in April and kills v1.0, we will seamlessly work with 2.0. If you want to make the change now, you can go to the Facebook Apps area and then to Settings -> Migrations and enable the "Use Graph API v2.0 by default" migration setting.
The topic has been locked.
Active Subscriptions:

None
11 years 3 months ago - 11 years 3 months ago #51576 by evil
Replied by evil on topic Fblogin using fb v1.0 api
Hi Melissa,

I tryed this solution but now the login is not working at all.

The call is still to v1.0 and the login has no success (i keep a white page still loading).

The main problem is that with mobile devices login works only after 3 login attempts.

So i thought the reason could be the use of deprecated 1.0 api but forcing v.2.0 is not working at all.
Last edit: 11 years 3 months ago by evil.
The topic has been locked.
Support Specialist
11 years 3 months ago #51581 by alzander
Replied by alzander on topic Fblogin using fb v1.0 api
I just tried on your site and I was logged in without issue. I tested the Facebook login button a few times and each time there were no issues.

Can you tell me what phone and browser you're testing with? Also, can you test on this site to see if you run into the same issues?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 3 months ago #51599 by evil
Replied by evil on topic Fblogin using fb v1.0 api
Hi Alex,
we have the issue with mobile dervices (iphone, android, windows phone).

In some rare occasions i get the same problem on desktop: the first login attempt doesn't work and i need to login again.

I think that probably this issue belongs to the use of deprecated 1.0 api so i'd like to force the use of 2.0 api.

Could you please tell me in what file you make the api call? So i can try to see if we can solve this issue in this way.

thank you.
The topic has been locked.
Support Specialist
11 years 3 months ago #51606 by alzander
Replied by alzander on topic Fblogin using fb v1.0 api
I just tried from an iPad using Safari on the concert page you PM'd me. I was immediately logged in without issue.

Almost all of JFBConnect's calls are made 'versionless'. That means that Facebook will use the oldest API that your app allows. You'd need to make multiple updates in various places. Instead, I'd really recommend trying what Melissa suggested above. That shouldn't make things fail as Facebook will simply use the oldest API your app allows which would be 2.0 when that migration setting is enabled. We have thousands of users that use 2.0 successfully as all apps created after May 1, 2014 will only use 2.0 (or higher).

Beyond that, I'd suggest trying from different browsers, phones, and even different Facebook accounts to see if there's some common underlying theme between your tests.

Please keep us posted on what you find, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 3 months ago #51609 by evil
Replied by evil on topic Fblogin using fb v1.0 api
Hi Alex,
i already tryied what Melissa suggest but with that setting in fb application, jfblogin is not working at all.

We was been noticed by many customers that they were unable to login. So we tryied to replicate the issue and we found the problem with android mobile phones, iphone and windows phone.
The topic has been locked.
Active Subscriptions:

None
11 years 3 months ago #51611 by evil
Replied by evil on topic Fblogin using fb v1.0 api
I forced API 2.x in the facebook migration tab.
As you can see the problem is still there, when you login from smartphone clicking on the pink button "ACCEDI E PRENOTA" the login still call an API 1.0 url, later the page returned shows again the same pre-login button "ACCEDI E PRENOTA" (login and book), a few seconds later the page refresh itself showing the "facebook registering message" and returns the right post-login page with the button "ACQUISTA" (buy).

In this way our customers are disoriented and many of them are calling the support desk telling that are not able to login.
Any tips?
The topic has been locked.
Support Specialist
11 years 3 months ago #51622 by alzander
Replied by alzander on topic Fblogin using fb v1.0 api
The best recommendation I can give as to where to edit would be the /components/com_jfbconnect/libraries/provider/facebook.php file. Around line 396, you'll see:
$version = "version: 'v1.0',";
Update that too:
$version = "version: 'v2.0',";
We already have that code change set for our upcoming 6.3 release. From everything I've read and seen, that value shouldn't matter since you have the migration setting enabled, but definitely test and let us know what you find.

Again, from my testing using Safari on iPad/iOS, I didn't see this issue, which makes it more difficult for me to diagnose. We also haven't had any other reports of this issue.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 2 months ago #52184 by evil
Replied by evil on topic Fblogin using fb v1.0 api
Hi, I opened a new post on this issue, could be this a cache problem on mobile device?
The topic has been locked.