Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish stream problem. #32

Closed
PSBT opened this issue Sep 3, 2010 · 11 comments
Closed

Publish stream problem. #32

PSBT opened this issue Sep 3, 2010 · 11 comments

Comments

@PSBT
Copy link

PSBT commented Sep 3, 2010

Hi!

I'm having a problem when trying to publish a stream. The problem occurs when:

  1. Launching theRunAround app, and login in to FB.
  2. On successful login, leave the app.
  3. Login to FB in a browser.
  4. Re-launch theRunAround app.

The session is correctly restored (my friends are displayed), but when I want to add a run, and the FB dialog appears, the dialog shows the following error:

"An error occurred with 'my_app_name' . Please try again later."

I've added FBDialogDelegate's dialog:didFailWithError: method to the sample, and when I click the "ok" button in the FBDialog, the following is printed to xCode's console:

Error Domain=facebookErrDomain Code=110 UserInfo=0x4d58830 "Operation could not be completed. (facebookErrDomain error 110.)"

What can it be? How can I fix this? This is actually happening to me in my own app, but I've also been able to reproduce it in theRunAround app, and that's why, above, I enumerate the steps to reproduce the issue using that sample.

Thanks you very much!

@yujuan
Copy link

yujuan commented Sep 3, 2010

The error with FBDialog stream publish are usually related to the cookie. You are log into touch.facebook.com, is that correct?
I Notice that if I use another device login into touch.facebook.com. and then login into the app with the sdk. I refresh on touch.facebook.com, the touch site is logged out also. It should be some bug in the server side that does not handle the touch site cookie well, I will investigate on that and keep you posted.

@PSBT
Copy link
Author

PSBT commented Sep 4, 2010

Actually I tested connecting to the regular Facebook in a browser, but I guess that it also occurs with the touch.facebook.com you mention, so the problem can also arise, when for example I'm running my app in my iphone, leave it, go to another app that also uses FB, and log in there...

Thanks!

@yujuan
Copy link

yujuan commented Sep 4, 2010

Actually, there is security reason for this design. When you login in to new place the old cookie get invalid , so that the mobile cookie can be valid at only one place with the assumption one user has only one cookie. But for iphone, as different app's web view does not share the cookie. this is a problematic. I will see if we can change on the server side. Thanks

@PSBT
Copy link
Author

PSBT commented Sep 5, 2010

The other solution might be to detect this error, and ask the user to re-login. The only problem with this approach is that I noticed that FBDialogDelegate's dialog:didFailWithError: methods gets called only after the user has clicked the Ok button in the dialog. Also this method doesn't get called when closing the dialog with the 'x' at the top.

Any suggestions as to how should I handle this error?

Thanks!

@yujuan
Copy link

yujuan commented Sep 6, 2010

For close dialg with 'x', the delegate dialogDidNotCompleteWithUrl will be called. As for judge if the dialog complete succeed or not. For judge if astream publish dialog go through successfully, you would need to check if a parameter post_id is appended to the url.
Though this way may tentatively make it look better, it is still not desirable as we do not want user to login frequently especially when the switch between facebook connect apps. So the best fix should be on the server side.

@nanomb
Copy link

nanomb commented Sep 24, 2010

Any news about this? I´m also having this issue and users are complaining about those errors :(
Which solution have you guys developed for this problem in your own apps?

@yujuan
Copy link

yujuan commented Sep 24, 2010

We currently have a change to address this issue but still under review. will let you know once the change go out

@venky284
Copy link

This is exactly the same error i get..
am also looking for some sort of solution..
do any one have a fix for this.

@ayyoitsp
Copy link

I'm getting the same problem at times. It seems doing an explicit logout before login resolves the issue, but seems like a bad overall solution. Thoughts?

@JPGarcia2010
Copy link

I have the same error always when trying to open the dialog to publish an stream. I've tried to do a logout before but didn't work. This is happening also on the Demo Application. What is the solution for this error?

@ghost
Copy link

ghost commented Nov 15, 2010

Also seeing this using SSO with the facebook application on the phone and its also not working, I am getting the 110 error. This happens on the simulator and the device. It is working on the 3.2 ipad simulator but this does not use SSO.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants