This is a migrated thread and some comments may be shown as answers.

how to intigrate facebook in my kendouimobile?

1 Answer 82 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Tirumalesh
Top achievements
Rank 1
Tirumalesh asked on 06 Apr 2012, 02:27 PM
I want to integrate the facebook and twitter in my phonegap for iphone.
i used iframe to open the links: src="http://m.facebook.com" and "https://mobile.twitter.com", but no luck.
when i run his i get the error in iphone -'Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)'

Any help appreciated,

Regards,
Tirumalesh.

1 Answer, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 16 Nov 2012, 11:41 PM
Try this.
You have to handle it int the shouldStartLoadWithRequest.

http://www.developerfeed.com/ios/topic/uiwebview-does-not-launch-mail-when-mailt

The sample is for maito:

You will have to try for the facebook url theme.

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {

   

    if ([[[request URL] scheme] isEqual:@"mailto"]) {

        [[UIApplication sharedApplication] openURL:[request URL]];

        return NO;

    }

    return YES;

   

}


This is what I found in my searches.  I have yet to test it on the device.

 
Tags
Integration with other JS libraries
Asked by
Tirumalesh
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Share this question
or