Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70865

Facebook Native not working in Browser

$
0
0

@seiboldsoft wrote:

Hello,

i moved from Ionic 1.* to Ionic 2.* and installed the Facebook4 Plugin.

Now i could see that there is no src/browser folder. Anyway, ive tried calling
Facebook.browserInit("");

within platform.ready but it seems to be broken. It throws an Exception

 angular2-polyfills.js:528 Unhandled Promise rejection: Object {error: "cordova_not_available"} ; Zone: angular ; Task: Promise.then ; Value: Object {error: "cordova_not_available"}

and in the console
TypeScript error: app/pages/facebook/facebook.ts(24,20): Error TS2346: Supplied parameters do not match any signature of call target.

What may be wrong? Its working fine in android.

i've made a validation with if (this.platform.is('cordova')) { } else { Facebook.browserInit(...); }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70865

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>