简体   繁体   English

不能在 facebook ios ZEAE18BC41E1434DD98FA2DD98Z93 的 ZEAE18BC41E1434DD98FA2DD98Z93 后台运行时 ZEAE18BC41E1434DD98FA2DD98Z93

[英]Can not post on facebook wall with facebook ios sdk when Application does not run in background has set to YES

im developing an iPhone application.我正在开发一个 iPhone 应用程序。 In my app there is a part to post a news link on user's facebook wall.在我的应用程序中,有一部分可以在用户的 facebook 墙上发布新闻链接。 There is no problem when i set to Application does not run in background property to NO on app plist file.当我在应用 plist 文件上将应用程序不在后台属性中设置为 NO 时,没有问题。 But i dont want to run in background.但我不想在后台运行。

Is there anyone has met with this situation before or can give me any suggestions?有没有人遇到过这种情况或可以给我任何建议?

Are you using this ?你在用这个吗? If you do what you can do (a little bit of a hack) is go in Facebook.m file and search for a line that says [self authorizeWithFBAppAuth:YES safariAuth:YES];如果你做了你能做的(有点黑客)是Facebook.m文件中的 go 并搜索显示[self authorizeWithFBAppAuth:YES safariAuth:YES]; and change that to [self authorizeWithFBAppAuth:NO safariAuth:NO];并将其更改为[self authorizeWithFBAppAuth:NO safariAuth:NO]; . . That will tell the SDK not to use different application to authorize your Facebook App so your app will never quit.这将告诉 SDK 不要使用不同的应用程序来授权您的 Facebook 应用程序,这样您的应用程序将永远不会退出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM