No reaction when pressing 'Login' button - ios

I am using Facebook iOS SDK for my app. I am using the sample's code for my login function asking for permissions and storing the returned token. However, locally on every iOS version on the simulator as well as on my iPhone4 it works. Some customers report that in their case pressing the login button does not show any reaction. Using google for research did not reveal any hints on that.
Thanks,
Peter

Recently I had a problem like this.. I've changed "perms" to "scope" inside facebook login button, and now it works.

Bug fixed. My fault, tested with Debug target only, which is why bug only appeared in Releases, since an #ifdef DEBUG was enabling/disabling the login function.

Related

Opening Facebook Page Results in Force Close

I'm making a mobile game using Unity3D 5.1.4, and inside my game I'd like the players to be able to open up my Facebook fanpage.
I have implemented it using this code:
Application.OpenURL("fb://page/442219965978230");
On Android it works fine, however the problem is on iOS.
I tested it on my iPad Air 2, iOS 9.2.
The Facebook app opened for a short moment, but then closed by itself.
This happens ONLY when the user is already logged into his Facebook account.
There was no error log when I checked in XCode...
After trying other games, I found out that opening Facebook would show a permission dialog "[Appname] wants to open Facebook", while in my game that dialog was never shown.
Is this what's causing the force close? Or something else?
I suspect it has something to do with iOS 9, isn't it?
If so, what do I need to do to fix it?
Change page to profile. For some reason, this is the fix for this problem.
Application.OpenURL("fb://profile/442219965978230");

Unity and Facebook - iOS won't post, android does

having a bit of an issue that I haven't been able to find anywhere. I've created a game using Unity and the Facebook SDK for Unity. It works great in the editor, great when pushed to android....But when I try an iOS install, it won't post onto my timeline or anyone else's and invites don't work....But the android version does.
It brings up the dialog like it should, looks like it's about to invite/post, then just goes back to the game.
I'm using Unity 4.3.4, Facebook SDK for Unity 5.0.3 and Xcode 5.1.
Any help would be appreciated.
EDIT: Some additional news. Facebook SDK for Unity has a tutorial attached to it where they have a pre-built project called Friend Smash to show you how the SDK works. I just ran the completed project through Xcode and pushed it to my iPhone and have experienced the EXACT same issue. Invite appears to be sent (even appears on the screen saying "request sent") and it appears to post my score to Facebook, but again nothing appears on Facebook.
Looks like this was my stuff up.
Looks like my request wasn't being given a Post ID. In checking my code, I had written "actionlink", instead of "link" in the "onBragClicked" method which fouled up the process....Yet somehow didn't screw up my android build.
Anyway, thanks for viewing.

Unity FB SDK on iOS: Problems with FB.Feed function

We started using Facebook's SDK in our game which was made with Unity.
We are trying to post "brag posts" when people win against their friends, and we use FB.Feed with the friend's ID in the "to" parameter.
In iOS devices running with an older FB app version, a small popup opens up inside the game - and it works perfectly well.
However on devices running the newest FB app version, when we call this function the FB app is opened, completely losing focus from our game, and an incorrect brag post is shown and attempts to post it on the user's wall (instead of on the friend's wall).
Anyone else had this problem and figured out how to fix it?
Thanks
I'll look into whether the feed dialog changed in newer version of the facebook app. In the meantime here's a workaround. In the exported xcode project, open FbUnityInterface.mm and go to line 46.
You should see the code
self.dialogMode = NativeDialogModes::FAST_APP_SWITCH_SHARE_DIALOG;
change that to
self.dialogMode = NativeDialogModes::WEBVIEW_DIALOG_MODE;
This will force the sdk to use webview dialogs instead of the one from the facebook app.

iOS Facebook SDK 3.0 Login not redirecting to origin app

I recently updated my ios app to facebook sdk 3.0.
I did everything like describes here:
https://developers.facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/
When I hit the Login with Facebook button everything works fine. The FB app is coming up, asks me for permissions BUT -> it doesn't redirect to come back to my app. It just stays with the FB app.
With the old SDK everything worked fine. Is it that the new SDK is not working with iOS 5?
I don't even know how to debug this...
Thanks for any kind of help!
UPDATE
It has something to do with my URL Schemes. Seems like ios SDK 3 doesn't like characters in the id. My former Scheme entry was fb0000000new where as the 0 are replaced by the app id. When I change that to just fb0000000 it works.
Would be good to have a link in the documentation though!
just try this its worked out for me
http://www.icodeblog.com/2011/03/28/facebook-sdk-posting-to-user-news-feed/

Facebook iOS native application SSO not working?

I am trying to make a Facebook native iOS application, using the iOS tutorial. I did exactly as instructed, the build is successful but instead of a normal Safari login page - I only get two buttons, Cancel and Login and they don't work.
I tried the HackBook example, and it has the same exact problem when I click the login using the Facebook button.
I am using Xcode 4.2 on Mac OS X v10.7 (Lion).
What may the problem be?
OK, found the problem. I tried to run it on my iPhone and it works fine.
I logged out of my Facebook acount on the emulator and then tried to run the applications - it worked!
Strange, but it does the trick.

Resources