Facebook Connect for iPhone - want to log in and post in one step -
This is a repost of Facebook developer forums, where no one has not yet responded.
This is what I would like to do:
- The user touched the connect button
- The code retrieves the session and resumes
- If the session does not start again, pop up login dialog
- Pop up the feed dialog (successfully logged in after the user) < / Ul>
- User connects button
- The login dialog comes up (but the user never sees it)
- The feed dialog comes up immediately
- Feed dialogue spin forever Because it is unable to connect
What really matters in this case where entry is required:
<There is no way to use representative methods to tell whether the user has finished logging in; DialogDid does not seem successful to ever be asked for the login dialog. For that matter, there is no way to tell whether they have been canceled or not (which is going on in this case, the feed dialogue will be useless).
Am I making an impossible effort?
However, he is not explaining why.
When you send the first communication to the show message, it shows, but does not wait to turn it off .. The program executes with the next line so you are asking to show the next dialog It does, which does this - just above the last one. This is true for dialogue or warning view on the iPhone platform.
The answer to the ad is showing the first dialog but it is not clear whether it is not released, that is, when the user logs in successfully, then the session representative will send the message -didLogin:
Is sent. You May Expect a Dialog Representative Message?
Be careful, however, as the result of the other conditions of your code can be a session login, and it will execute the code in the delegate method .. and you do not want to!
An example of this is when the session begins to keep it straight-forward, suppose you have two verbs in your app, and both users publish a short story in the feed . When you ask the user to login - or resume - their current session will be sent to the session rep message -didLogin:
. You need to make sure that -didLogin:
implement both the implementation and both actions.
As a side, the latest SDK and request to push the story to Facebook
, or FBStreamDialog
class ( instead of FBFeedDialog
).
Comments
Post a Comment