简体   繁体   English

ShareKit + Facebook身份验证无效

[英]ShareKit + Facebook authentication not working

I'm using ShareKit to post to Facebook from a PhoneGap app which I'm working on. 我正在使用ShareKit从我正在处理的PhoneGap应用程序发布到Facebook。 I created the app in Facebook and installed the plugin in my project. 我在Facebook上创建了应用程序并在我的项目中安装了该插件。 Twitter works fine, but I get the following error when I try to share on Facebook: Twitter工作正常,但当我尝试在Facebook上分享时,我收到以下错误:

" Error: Sorry the application you are using is misconfigured for Facebook integration. Please download the newest version of the application. " “错误:很抱歉,您正在使用的应用程序配置错误,无法进行Facebook集成。请下载最新版本的应用程序。”

I've seen a couple posts that seem to describe this same problem, but the "solutions" involve not using ShareKit and instead integrating manually. 我看过一些似乎描述同样问题的帖子,但“解决方案”涉及不使用ShareKit而是手动集成。 This isn't a solution! 这不是解决方案!

Has anyone figured this out? 有没有人想到这个?

More details: ShareKit v0.2.1 Xcode: v4.3.1 PhoneGap (aka Cordova) v1.5.0 更多细节:ShareKit v0.2.1 Xcode:v4.3.1 PhoneGap(aka Cordova)v1.5.0

go to class facebook.m and change the authorization to NO as mention below: 去上课facebook.m并将授权更改为NO,如下所述:

  • (void)authorize:(NSArray *)permissions { self.permissions = permissions; (void)授权:(NSArray *)权限{self.permissions = permissions;

    [self authorizeWithFBAppAuth:NO safariAuth:NO]; [self authorizeWithFBAppAuth:NO safariAuth:NO]; } }

Unfortunately the original ShareKit from Nate Weiner doesn't get frequently updated. 不幸的是,来自Nate Weiner的原始ShareKit并没有经常更新。 Maybe you should check out ShareKit 2.0 . 也许你应该看看ShareKit 2.0 I didn't have any problems integrating it in my app. 我在我的应用程序中集成它没有任何问题。 At least Twitter and Facebook where no problems, that's all I use for the moment. 至少Twitter和Facebook没有问题,这就是我目前使用的全部内容。

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

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