无法在 iphone sdk 中将照片上传到 Facebook 墙上
在我的 iPhone 应用程序中,我尝试使用 此代码。
当我在模拟器中使用时它工作正常,但是当我尝试从设备上传时,它在 Facebook 墙上没有显示任何内容。
编辑:在设备上运行时,我在控制台中收到以下错误:
sendToPhotosFinished
方法:
Send To Photos Finished
ResponseString : {"error":{"type":"OAuthException","message":"(#1) An unknown error occurred"}}
ResponseJSON : {
error = {
message = "(#1) An unknown error occurred";
type = OAuthException;
};
}
Photo id is: (null)
在 getFacebookPhoto
方法中:
Got Facebook Photo: {"error":{"type":"OAuthException","message":"(#803) Some of the aliases you requested do not exist: (null)"}}
在模拟器中运行时,我获得了所有值。
可能出什么问题了?
In my iPhone app, I am trying to upload photo on facebook wall using this code.
It works fine when I am using in simulator, but when I try to upload from device it shows nothing on facebook wall.
EDIT: I am getting following error in console when running on device :
sendToPhotosFinished
method :
Send To Photos Finished
ResponseString : {"error":{"type":"OAuthException","message":"(#1) An unknown error occurred"}}
ResponseJSON : {
error = {
message = "(#1) An unknown error occurred";
type = OAuthException;
};
}
Photo id is: (null)
and in getFacebookPhoto
method :
Got Facebook Photo: {"error":{"type":"OAuthException","message":"(#803) Some of the aliases you requested do not exist: (null)"}}
While running in simulator I got all the values.
What could be wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否传递了正确的 API 密钥?
我认为问题在于您没有传递 API 密钥,因此它给出了
null
。这就是你的问题所在。
http://www.insidefacebook.com/2010/11/ 17/api-测试-用户-开发人员/
Did you pass the correct API key?
I think the problem is that you are not passing your API Key and hence it gives
null
.That is where your problem lies.
http://www.insidefacebook.com/2010/11/17/api-test-user-developers/