Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.91k stars 2.01k forks source link

Facebook rejected my app because plugin used web dialog for login - help? #1181

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi Everyone,

Thank you in advance for your assistance with this. I've integrated the plugin and followed every step I can find documentation on and at present the app will open a web-dialogue for the facebook authentication.

I've done a preliminary submission to Facebook and they rejected it on the basis that iOS apps "must not use a web dialog" - which I'm assuming means they want the app to link directly to the users Facebook app (if it's installed). The only problem is, I can't find a solution for this anywhere. Even with everything I have tried my app will only ever either open safari for authentication, or open a web dialogue.

Any assistance is greatly appreciated!

visormatt commented 8 years ago

@crosstechnology Have you tested your App with a device that does have the FB Application Installed? If so, did that allow the user to login via the app?

ghost commented 8 years ago

@visormatt All devices I've tested with have the FB App installed. Originally, the Wizcorp plugin would open the facebook login in Safari.

Then after searching the forums/web for quite a while I found a 'fix' that allowed it to open a web-dialog instead of redirecting to safari.

But I have yet to find any solution that will link directly to the facebook app on the users phone :-/

visormatt commented 8 years ago

@crosstechnology

You may want to try to add an remove your platform then do a fresh install of the plugin. From there, it's very important that your .plist have the correct entries. I've attached a text version of what I think is the bare minimum for the FB app to launch the Native App. You can update via source view or as a property list by right clicking -> open as -> source / property.

Take a look at whats in there currently, then pick the nodes over that you may be missing. Be safe and just make a backup of your current version.

When debugging pay attention to the logger in XCode, to see what it's saying too... Hopefully this will help, right now I have it using the native app using this setup. It's successfully uses the App when it's installed, however my concern is when the app is not installed. When not available it's opening the FB link in Safari which I think might put me in your same boat for being rejected...

basic.txt

GirlBossRush commented 8 years ago

I was able to fix this issue by following Facebook's guide on iOS 9 integration. https://developers.facebook.com/docs/ios/ios9

Cheers.