身份验证后Facebook iOS SDK Feed对话框问题 [英] Facebook iOS SDK Feed Dialog issue after authentication

查看:116
本文介绍了身份验证后Facebook iOS SDK Feed对话框问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎遇到了Feed对话框的问题,我以前没有这个问题。
我怀疑这是因为iOS 5,但我不确定。

I seem to be having an issue with the feed dialog, which I haven't had before. I suspect it's because of iOS 5, but I'm not sure.

如果用户需要身份验证,他将被重定向到Facebook应用程序,然后返回我的应用。

If the user needs authentication, he's being redirected to the Facebook app, and then returns to my app.

之后,用户点击分享按钮,然后出现供稿对话框
但突然,消失

Afterwards, the user clicks a "Share" button, and the feed dialog appears. But suddenly, it disappears.

如果用户再次点击分享,则Feed对话框工作正常。这是第一次,从身份验证返回应用程序后......

If the user clicks "Share" again, the feed dialog is working just fine. It's just that first time, after returning to the app from authentication...

与共享按钮关联的代码就是这样:

The code associated with the "Share" button is simply this:

if ([facebook isSessionValid]) {
   [facebook dialog:@"feed" andParams:params andDelegate:self];
}

params 变量始终设置为正确价值观并非零。
如果会话无效,则会向用户发送身份验证方法。

The params variable is always set to the correct values and is not nil. If the session is not valid, the user is being sent to the authentication method.

我还尝试在FBDialog.m中注释掉IF语句我已经在某个地方读过,但它没有用完。

I tried also to comment out an IF Statement in FBDialog.m which I've read somewhere, but it didn't work out.

任何人遇到过同样的问题?

Anyone experienced the same issue?

谢谢!

编辑:
我很确定这是因为iOS 5现在,因为我已经在运行iOS 4.3的iPad 2上构建了该项目,并且它从第一次开始工作正常。

I'm pretty sure it's because of iOS 5 now, since I've built the project on my iPad 2, which is running iOS 4.3, and it works fine from the first time.

编辑2:
它突然正常工作。 ...而且我没有改变任何东西O_O

EDIT 2: It's suddenly working fine. ...and I didn't change anything O_O

推荐答案

我有同样的问题,这个代码更改修复了它 https://github.com/deyton/facebook-ios-sdk/commit/c1d3702f7c2042549c3bee050ceade7fb6f593a4

I had the same issue and this code change fixed it https://github.com/deyton/facebook-ios-sdk/commit/c1d3702f7c2042549c3bee050ceade7fb6f593a4

这篇关于身份验证后Facebook iOS SDK Feed对话框问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆