I need to open facebook application iusing ionic. This is my code:
var scheme = 'facebook://';
appAvailability.check(
scheme, // URI Scheme
function() { // Success callback
Ti.API.debug('Facebook is available');
window.open(scheme+url, '_system', 'location=no');
},
function() { // Error callback
Ti.API.debug('Facebook is not available');
}
);
but I have this error:
-canOpenURL: failed for URL: "facebook://" - error: "This app is not allowed to query for scheme facebook"
any idea?
thanx
On Android scheme is
com.facebook.katana
instead of
facebook://
On iOS scheme is
fb://
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.