Giter Site home page Giter Site logo

Publish stream problem. about facebook-ios-sdk HOT 11 CLOSED

PSBT avatar PSBT commented on March 29, 2024
Publish stream problem.

from facebook-ios-sdk.

Comments (11)

yujuan avatar yujuan commented on March 29, 2024

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.

from facebook-ios-sdk.

PSBT avatar PSBT commented on March 29, 2024

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!

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

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

from facebook-ios-sdk.

PSBT avatar PSBT commented on March 29, 2024

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!

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

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.

from facebook-ios-sdk.

nanomb avatar nanomb commented on March 29, 2024

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?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

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

from facebook-ios-sdk.

venky284 avatar venky284 commented on March 29, 2024

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

from facebook-ios-sdk.

ayyoitsp avatar ayyoitsp commented on March 29, 2024

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?

from facebook-ios-sdk.

JPGarcia2010 avatar JPGarcia2010 commented on March 29, 2024

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?

from facebook-ios-sdk.

 avatar commented on March 29, 2024

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.

from facebook-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.