Vincent7036552
Posts: 0
Joined: Mon Aug 11, 2014 10:32 am

Facebook connect /me doesn't return user infos on the first call

Hi,

I'm having a very strange behavior with Facebook Connect (testing on iPhone 4, iOS 7.1.1). I followed the appery tutorial to implement the Facebook Connect in my app.

The login seems to be good, but when I redirect to the A1_FB_ME page, then the information from the user are not loaded correctly (see screenshot, first screen).

What is even more strange is that when I navigate to another page and I come back to this page, then the user info are available (see screenshot, second screen)...

Do you have any ideas of what happens the first time and how to make it work?

Thanks!

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Facebook connect /me doesn't return user infos on the first call

Hello Vincent,

Could you please clarify, when do you call this alert? The fact that user data is retrieved by the service, which runs on the load event for the page Facebook_Me in the tutorial. So until this page won't be loaded, the user's data will not appear.

Vincent7036552
Posts: 0
Joined: Mon Aug 11, 2014 10:32 am

Facebook connect /me doesn't return user infos on the first call

Hi Evgene,

Thanks for the fast answer. Please find below a screenshot of my events.

I first call facebook_Me, and then the alert on the A1_FB_ME page.

Does it help?

Thanks!

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Facebook connect /me doesn't return user infos on the first call

Vincent,

You should call alert on the event "success" for service facebook_Me.

Vincent7036552
Posts: 0
Joined: Mon Aug 11, 2014 10:32 am

Facebook connect /me doesn't return user infos on the first call

Ok, but I don't find a "success" event in the event list.

How should I proceed then?

Thanks

Vincent7036552
Posts: 0
Joined: Mon Aug 11, 2014 10:32 am

Facebook connect /me doesn't return user infos on the first call

Evgene,

I found it in the "data" view. Let's see if this will work ;)

Thanks!

Vincent7036552
Posts: 0
Joined: Mon Aug 11, 2014 10:32 am

Facebook connect /me doesn't return user infos on the first call

It worked, many thanks Evgene!

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Facebook connect /me doesn't return user infos on the first call

Vincent,

Thanks for the update, glad it works!

Return to “Issues”