[英]Facebook image upload on a page working properly in simulator but not in device
When I run same code in simulator I get success Response for image post: 当我在模拟器中运行相同的代码时,我获得成功响应图像帖子:
{
id = 248572435289479;
"post_id" = "244759709004085_248572441956145";
}
When I run in same code in device I get: 当我在设备中使用相同的代码运行时,我得到:
Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x208a8dd0 {error={
code = 1;
message = "(#1) An unknown error occurred";
type = OAuthException;
}}
"
OAuthException
means that there was an authentication issue. OAuthException
意味着存在身份验证问题。 Be sure that the following are true on your device. 请确保您的设备上存在以下情况。
If none of the above work, try logging out in Settings on the phone and logging back in. Then try logging in through safari. 如果以上都不起作用,请尝试在手机的“设置”中注销并重新登录。然后尝试通过safari登录。 Sometimes the iOS facebook authentication can be a little buggy. 有时iOS facebook身份验证可能有点儿麻烦。 Also try a different app that is guaranteed to work with iOS facebook accounts. 还可以尝试使用其他应用程序保证与iOS Facebook帐户一起使用。 Something like, Hootsuite . 像Hootsuite这样的东西。
If there is still an issue after all that... I am not sure what you tell you. 如果还有毕竟是一个问题......我不知道你告诉你。
This link might help you. 此链接可能对您有所帮助。
and @giff's answer also explains it to some extent on this link . 而@ giff的回答也在某种程度上解释了这个链接 。
log of your issue in this might help you to get further detail of your error. 在此中记录您的问题可能有助于您进一步了解错误。
- (void)request:(FBRequest *)request didFailWithError:(NSError *)error {
NSLog(@"%@", [error localizedDescription]);
NSLog(@"Err details: %@", [error description]);
};
I recommend you to try this if none of the solutions given above could help you. 如果上面给出的解决方案都不能帮到你,我建议你试试这个。
Remove the application from the list of authorized applications and authorize it again with the needed permissions. 从授权应用程序列表中删除该应用程序,并使用所需权限再次对其进行授权。
Hope this works for you 希望这对你有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.