About Store Forum Documentation Contact



Post Reply 
Facebook functionality when Facebook app is installed
Author Message
MrPi Offline
Member

Post: #1
Facebook functionality when Facebook app is installed
I tested this on Android. When you have the Facebook app installed on the machine, the engine's Facebook class doesn't function properly anymore. It shows a simple popup "AppName wants to access: public profiles, friends list" with two buttons "OK" and "Cancel". If you click OK, nothing happens. It doesn't ask for your login credentials.
(This post was last modified: 05-11-2014 04:16 PM by MrPi.)
05-11-2014 04:15 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Facebook functionality when Facebook app is installed
For issues that aren't source related, please don't post in the Source section, but in regular support forum.

That's proper behavior.
05-11-2014 09:08 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #3
RE: Facebook functionality when Facebook app is installed
That's proper behavior? But it doesn't log in, so none of the Facebook get functions work.
05-11-2014 09:13 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Facebook functionality when Facebook app is installed
I have Facebook app and it works ok.
Both tutorials and my game swipe the doge.
Please check if you have completed all steps described in esenthel headers.
05-11-2014 09:32 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #5
RE: Facebook functionality when Facebook app is installed
All steps described in the header have been completed, it also worked before I had the Facebook app installed.
I verified the bug by uninstalling the Facebook app on the device. After that, the Facebook login in my Esenthel app worked properly again.

Could you please check what could be the problem there?
05-14-2014 03:58 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Facebook functionality when Facebook app is installed
Does this happen on both iOS and Android?

Do you get any suspicious looking output on Android Device Log?

Did you try to do debugging on iOS with Engine compiled in Debug mode, to see what happens in the code
Facebook.cpp line 166 is the callback with login result, you can investigate the "NSError *error" there.
05-15-2014 09:47 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #7
RE: Facebook functionality when Facebook app is installed
It happened on Android. I didn't test it on iOS yet, as I'm still working on changes there. I will test again on Android and check the device log.
05-15-2014 11:29 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #8
RE: Facebook functionality when Facebook app is installed
I did some testing on iOS today and can report the following behavior (with the Facebook app installed).

1) When trying to connect it first opens some facebook page outside the game, then switches back to the game and presents the facebook login overlay after a while. It could only really do that by having phone internet (Wifi alone somehow delayed it until it got back some 3G).

2) After entering the facebook credentials, the white overlay window background didn't disappear. I clicked the X on the top left corner, it disappeared and I noticed I was connected to Facebook.
I requested the list of friends, their avatar images and displayed a random amount in the game.

3) In the XCode log I saw the following message appearing now and then:
"FBSDKLog: An existing state change handler was assigned to the session and will be overwritten."

4) One of the main features I'm using is sending the score after a completed level. When I triggered that, the following happened. Some empty facebook page appeared and the game was pushed to the background.
On that window appeared: "Invalid Scope: publish_action" with an OK button. After clicking the OK button, the game was activated again.

5) The next time I started the game again from scratch (after removing it from the task list), the facebook connection was on. So re-using the previous session works. However, the sending score behavior as in 4) is the same.

I hope this info is useful to you to fix the Facebook integration. I will check the log on Android later as well.

Thank you!
(This post was last modified: 05-16-2014 09:48 PM by MrPi.)
05-16-2014 09:41 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #9
RE: Facebook functionality when Facebook app is installed
2) The login process (the overlay) is done by FB SDK, not by EE
4) Do you meet this requirement?
Quote:Facebook& setScore (Int score); // set your score for current app , 'logIn' will be automatically called if needed, for this to work the category of your Facebook App needs to be set to "Games"

Can you try testing:
https://play.google.com/store/apps/detai...swipe_doge
https://itunes.apple.com/us/app/swipe-th...d866657012
05-17-2014 10:17 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #10
RE: Facebook functionality when Facebook app is installed
I experience the exact same behavior as described above in your game on iPhone.
05-18-2014 12:14 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Facebook functionality when Facebook app is installed
Hi,

I've did some more tests today:
-tried running the game on 2 Android devices, with 2 FB accounts (worked fine both times)
-tried running the game on 2 iOS devices with 2 FB accounts (worked fine on my new iPad mini retina, but when I've grabbed my old iPhone 4, I had the same message as you did: "invalid scope").
I've tried updating the phone from iOS 7.0/7.1 (don't remember which one exactly) to 7.1.1 and now it works.
So perhaps there's some compatibility issue between FB SDK and the iOS version.
05-20-2014 11:16 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #12
RE: Facebook functionality when Facebook app is installed
What were the Android versions of your android devices?
05-20-2014 11:24 PM
Find all posts by this user Quote this message in a reply
Post Reply