Can't open Facebook URL page

Hi,

I’ve tried to open a Facebook URL.

Here is my code :

local url = "https://www.facebook.com/281312168702908" system.openURL( url ) 

It doesn’t work and I’ve got this error on my console :

-canOpenURL: failed for URL: “fb://profile?id=281312168702908” - error: "This app is not allowed to query for scheme fb"

 

Any help would be great :slight_smile:

Thanks

 

Olivier

Look at the documentation for the Facebook V4 plugin. While you may not be using it, it sounds like Apple is routing your https: call to the fb:// scheme. That V4 plugin docs has some URL scheme stuff you can include in your build.settings which might help you work past this.

Rob

Thank you Rob  :slight_smile:

If you need it, add this under iphone > plist in your build.settings.

LSApplicationQueriesSchemes = { "facebook", ... }

Thank you AidanWolf :slight_smile:

Look at the documentation for the Facebook V4 plugin. While you may not be using it, it sounds like Apple is routing your https: call to the fb:// scheme. That V4 plugin docs has some URL scheme stuff you can include in your build.settings which might help you work past this.

Rob

Thank you Rob  :slight_smile:

If you need it, add this under iphone > plist in your build.settings.

LSApplicationQueriesSchemes = { "facebook", ... }

Thank you AidanWolf :slight_smile: