English 中文(简体)
我如何利用象征性的渠道绕过FB.login()
原标题:How can I use an access token to circumvent FB.login()

We are using phonegap to wrap our HTML5 app into a native iOS application. We need to login to facebook, but the JS SDK will pop up a Mobile Safari window and, from there, it s a bit weird to go back to the app.

我们想要做的是使用Facebook sOS SDK,然后获得一个机会,然后获得,即在我们的《联合材料法典》中显示的用于验证用户。

显然,我们仍希望利用已经设想到的<>而不是需要标语的JS SDK。

你们是否知道我们如何能够这样做?

最佳回答

审判

FB._authResponse.accessToken =  YOUR TOKEN RETRIEVED FROM iOS SDK 

查阅网站 您的运用情况:

[webView stringByEvaluatingJavaScriptFromString:
                              @"FB._authResponse.accessToken =  %@ ",accessToken]
问题回答

因此,你想把你本土的口号传给你的服务器,这样你就可以开始把 j印版SDK与你在原木中获得的象征性联系。

我看不出这种 would的工作的具体原因,你只是不得不在SSO进程完成之后,从你本土的传承器获得象征性和相关用户信息。

你们是否看到了儿童微电能。 特别是





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.