Wizcorp / phonegap-facebook-plugin

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

Login from Twitter, Pinterrest, Pages inapp browser failes on IOS #1334

Open Jempan opened 7 years ago

Jempan commented 7 years ago

Part of my marketing strategy is for users to share a link to my app in different social media apps. The problem is that when this link is clicked in for example Twitter, Pinterrest etc my web app is opened in their inapp browsers and when the users click login the facebookplugin.login() gives them a blank window (see below image). This happens only in Twitter/Pinterrest on iPhone not Android. Another interresting thing is that links opened in Messenger and Facebook inapp browser works correctly.

This is definitely not my area of expertise but I suppose the problem lies in that some webviews (inapp browsers) does not handle redirects and popups well? What is the best solution or workaround here if I want to avoid to put new users in that very confusing blank window situation?

img_2776