Bug in facebook single sign on in ios6 - iphone

Bug in facebook single sign on in ios6
Please check the above image. Whn i click on cancel it's not going back to the app instead it's stays in facebook itself. This is happening only in iOS6. In iOS5.1.1 it's working perfectly. Please help!!!
Thanks...

You should submit your bug to Facebook and provide as much detail as possible (including some sample code) https://developers.facebook.com/bugs/create

User after pressing cancel in FB app when comes back to your app manually, your handler will be called with status as FBSessionStateClosedLoginFailed. So check for this status and raise proper error message or try opening the session again.

Related

Facebook SDK - iOS6 login popup cannot be dismissed

In my iPhone app, I want the user to be able to share a link on Facebook.
When they click "share", I use the following code to login to Facebook using the new SDK 3.1, then use FBRequestConnection in the completion handler (a simple publish_action).
[FBSession openActiveSessionWithPublishPermissions:#[#"publish_actions"] defaultAudience:FBSessionDefaultAudienceFriends allowLoginUI:true completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
// Now call FBRequestConnection to post in the stream
}];
When the user has the Facebook app installed, it just delegates the login to the app. However when they don't, it opens the login page in a WebView.
In iOS 5, it opens Mobile Safari:
My problem is on iOS 6, I get the same flow but in a modal popup instead (on top of my app).
I have 2 issues with the popup:
1. Closing it
It cannot be cancelled or dismissed. In comparison, the HelloFacebookSample app from the SDK has the same popup but with a cross button to close it.
NOTE: now solved thanks to ravi, I was missing the Facebook resource bundle which contains the "close" image.
2. Accepting the permissions
On the second step of the popup (see screens above), pressing Okay doesn't do anything. Pressing the "X" calls the completion handler with an error, which is great, but nothing happens with Okay. Is this the right way to login to Facebook with the SDK 3.1? Am I missing a callback to react to the popup specifically?
Some more clarifications:
This only happens in iOS6 when the Facebook app is not
installed and the Facebook account is not configured in the iOS
settings.
Thanks!
I can't comment as my reputation is less than 50, so trying to point out my observations as answer.
I too noticed this problem when using Facebook sdk3.1 on ios6. In my case I'm using the old style facebook object creation and call [facebook authorize:permissions] on it, but I modified the source code to always use "FBSessionLoginBehaviorForcingWebView" so that my login is always through in-app web login.
In my case I was missing FBUserSettingsViewResources.bundle and FacebookSDKResources.bundle, so I was unable to see the cross button (but I was able to tap on that spot and getting call back - (void)fbDidNotLogin:(BOOL)cancelled {) .
I also encountered this issue and it does appear to be a known bug:
https://developers.facebook.com/bugs/539702426044893?browse=search_507daefc9af416244781488
I haven't resolved the issue yet, but for me it only seem to happen in the simulator. My app seems to always login through safari when installed on a device
Edit: So after a little more digging I came across this stack overflow thread:
FBConnect login, share with a webview?
I realized that the dialog we're seeing is a uiWebView which is actually the fallback if the app is unable to open the dialog in safari. I was able to work around my issue my reseting my simulator, which would essentially clean out the cookies. From your screen shot I believe you are working in the simulator too. I wonder if you reset the simulator if you would have the same results?
From the menu iOS Simulator -> Reset Content and Settings...

ShareKit : Facebook connection issue in iOS

getshrekit.com : Yesterday I was facing problem in Facebook. I was register App on Facebook and that keys are incorporated in ShareKit when I was click the Facebook button I was getting error Screen shot attached.
Please provide your feedback.!
Whenever you use ShareKit, you need to first check updated version of it. You can follow this link and i hope it will certainly help you. http://getsharekit.com/docs/

Facebook "Publish Story" dialog buttons are too far down

I have the following problem with my implementation of Facebook.
I want to publish a user story and everything works pretty well except sometimes the buttons
are placed too far down and you can't just scroll them up 'cause they always will pop back down there. I think you can see it best in the picture!
Its even worse in German...
Does anybody have the same problems? Or does anybody know why this could be?
Screenshot
Reduce the size of your content.Since this is a webview so it adjust the size as per your content.Decrease the size of your content and they were , on their right position.
Hope it helps you.....
Alright it is gone now!
There was a new update of the Facebook api and this problem went away after updating!
So like I thought it was a problem of the Facebook api!
I have narrowed it down somewhat:
feed dialog is scrambled only when called right after login dialog. In my case when user clicks post button I check if he is logged in, if yes then show post feed dialog, if not I show him login dialog then post feed dialog.
There is no need to do that because post feed dialog will force user to login when opening...
skipping this step with login solved this problem...

How do you edit the settings you entered when you registered your Facebook app?

How do you edit the settings you entered when you registered your Facebook app?
I need to change the base url and cannot for the life of me figure it out navigating the site.
Someone must know where this is accessible.
Edit:
Hmmm, guess I have been going to the right place, right now I just get
'An error occurred with Developer. Please try again later.'
The link is: http://www.facebook.com/developers/editapp.php?app_id=[APP_ID]
You can navigate to this link starting from facebook.com/developers. The base URL can be edited inside the Facebook integration tab (on the left)
From the right sidebar My Apps on the developers page
http://www.facebook.com/developers
Find your app on the right, then go to Edit Settings.
Just as an FYI... my app doesn't show up under the developer page (yes, I'm logged in) and if I use the URL that jack provided I just get redirected to my account/info page.
My app works but it can't be edited...

iPhone FBConnect when password has changed

I was testing for a bug found by a tester when I ran across this. I think it's a FBConnect bug but I thought I would try here to see if anyone else has had this issue:
I've FBConnected from the iPhone app to FB, logged in correctly and verified that I can resume the session. Then, I go to FB and change my password. The next time I try to post a link to FB from the iPhone app. the FBStreamingDialog shows up but disappears immediately. Upon debugging, the window is "cancelled" (the delegate is not getting called which is strange) and the return url from the webView inside FBDialog is "fbconnect:success"
Does anyone have any idea what's going on?
-Don
I'm not familar with the Facebook API but the "fbconnect:success" looks more like an objective-C selector instead of a URL. That suggest you may have a method call somehow confused with a string representing the URL. This sometimes happens when you send a selector as part of a notification.
Just a wild guess.