Facebook session data not recovering - facebook

I'm on Unity 5.1.1, Facebook 7.0.2 beta and testing on Android 5.1 and iOS 8.4 devices.
I'm doing FB.Init(); with "status = true" to recover the session and "autologin". But my problem is that it doesn't work. When I call Init in onInitComplete callback FB.IsLoggedIn returns always false.
I have tried in my project and in a blank project with the example scene. In the example scene I click on FB.Init, FB.Login, I log in then I close the app and open again and I have to login again.
Is it a bug?

We're having the same issue. It is a bug on Facebook's part. The result of the Init call doesn't seem to include any information about the player at all. In fact, it includes different type of useless data depending on the current platform.
Facebook has acknowledged the bug and they said it's fixed in the next build which hasn't been released yet. You can see the bug and that acknowledgment here.
https://developers.facebook.com/bugs/1459551294340956/?search_id

Related

xamarin ios10 no message in logging

When I view the device log in Visual Studio when trying to debug my app which runs in the background (so no normal debugging is available) I get empty messages.
I am using Debug.WriteLine with the defaul System.Diagnostics, no custom stuff whatsoever. Tried restarting everything, but that didn't help. It does hit the lines because the code is executed and I see the empty message lines so it is partially working but the most important info is not visible.
It works fine on an iPhone 4S (iOS 9) but since today I'm using an iPhone SE (iOS 10) and the message is empty.
Doesn't make life easier not being able to debug and not being able to view the debug text :(
Any idea anyone?
Cheers,
Rob
screenshot
So yes, this does appear to be a bug in Xamarin.iOS. Bug filed:
https://bugzilla.xamarin.com/show_bug.cgi?id=52308
This is a regression in the latest Stable and Alpha/Beta releases (works as expected in the last stable release, Xam.iOS 10.2.1.5)
Xamarin engineers will now discuss this issue on the bug report. If you would like to receive a notification when the bug is updated, you can add yourself to the CC list for the bug. Please note that you will need to create an account on that system if you have not already done so.

Facebook-Unity-SDK Feed Callback Not Called

Problem
FB.Request() callback parameter is never being called on Android. It works fine on iOS.
Info
Unity Version: 4.3.0f4
FB SDK Version: 4.3.6
FB SDK Build Version: 131121.17562b74012d24a
Repro Steps
Start a new Unity project and import FB SDK 4.3.6
Change to an Android project and fill out your keystore info
Edit FacebookSettings to match what's in developers.facebook.com in your app
Edit InteractiveConsole.cs to add a Debug.Log() on the first line of Callback(FBResult result) (which is the function that should be called when a feed request is done).
Build the project with the InteractiveConsole scene
Init, Login, and try to post. Notice that your debug log never occurs even though the adb logcat says "“FBUnitySDK( 3272): sending to Unity OnFeedRequestComplete({“id”:”12321312321 blablah”})"
Details
We noticed that OnFeedRequestComplete(string message) in AndroidFacebook.cs, has nothing in it. Also, the callback parameter in FeedRequest(params…) in AndroidFacebook.cs is not being used at all.
Sorry if this is a known-issue but I don't see any similar posts on StackOverflow or on developers.facebook.com/bugs.
Thanks for pointing that out. I'm getting a fix in for that. It'll be out for the next update.

Why can't I use the Javascript Log console properly with iOS 7?

I desperately need to use the Safari console on iOS 7 to debug a site. I've hooked my iPhone (5) displaying the site to my Mac. I've started Safari (v6.0.5), gone to the Develop menu, and started the web inspector for the site I'm on. I can see the list of elements on the site, which confirms I'm inside the correct inspector.
From what I've read, the logs to the console should be displayed inside the Logs section, and from what I've found inside Apple's iOS Safari documentation, I should be able to view logs inside there. For me though, nothing is ever logged. I can't even access any variables or functions; when I type anything in (e.g. document.title), it just 'logs' exactly what I've written, with the text I've just typed still in the input field. However, typing something that causes the browser on the device to show life works (e.g. alert('hi'); displays the alert dialog box on the device).
Can anyone help? This issue we have is only happening on iOS, and there's barely any other way to find what's going wrong. Is this problem limited to iOS 7?
I can confirm that this is an iOS 7 issue. The console.log statement works fine when using an iOS 6 or below device, but with iOS 7 won't show at all :(
Apple == new Microsoft();
Only minutes after posting this I got logging to work again, not sure if this is required, but it seemed to do magic for me:
Connect iOS 7 device
Open XCode
Setup device for development
Connect using Safari
Presto, I can see log messages again?!? (Mind you, I had not made any code-changes)
I had the same problem, just after updating to iOS 7. The solution was to update safari to the latest version for developers, which is version 6.1.

iOS app does not respond to some clicks when downloaded from AppStore but works fine in Debug mode

I've made an app (called BeSharp), tested it a lot, uploaded it to Apple AppStore, and now all users report that the pop-up menu I use (custom one) does not respond to clicks.
It does not crash, so I don't understand how to get some debugging done.
So, the question:
How can I debug release version?
Thanks in advance.
P.S. Please find below some promo-codes if you wish to test an app yourself:
FAYNW9XTTMPY
LYK7EYJYJM4E
T6FW34E4TL6J
NJ99R4E39WEW
PJ473MERJKTH
MK4EMXE9XFFW
LN7AFXHJN9YK
MTTKW4PMXPFP
KK9HE74MKFJL
X6PWPHERHMLF
E7P96NNNAAN6
N93FFTPPA366
T9JX6PMN9ELT
JP39XKTT4J6N
Y3Y4R643E6F3
33HWLF4PFJPA
7XYW7NAH7A63
JNP4EYJHKLN6
46KPNPYFYALJ
Thanks everybody for comments.
I solved the issue.
After inserting some NSLog into code, and running release version on real device, I have pinpointed the issue, and it was in custom button component - in 6.1 some Alpha test function works incorrectly.
So I just updated it and everything worked fine.

Facebook iOS SDK 3.5 login issue

I've already integrated facebook login in an app with the previous sdk version. After upgrading to version 3.5, it isn't working. When I want to login, the app crashes, with several [FBSession authorizeWithPermissions:defaultAudience....] callings in the thread.
I've already done all the steps described in Upgrading documentation. Somebody with the same problem?
Thanks in advance.
The app is for iOS.
Set Sandbox Mode to disabled. This will fix this problem for now.
Facebook has fixed part of the problem on the server side. Try it again and it will probably work for you.
https://developers.facebook.com/bugs/188127071335876?browse=search_51770009e1ec62f68874486
This was a server error that was causing this for a lot of developers. However, the server fix only makes the infinite loop problem less likely to happen. It is still there. I created a new bug to track the infinite loop problem.
https://developers.facebook.com/bugs/446010282155033