Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to login with facebook on iphone/phonegap with the ChildBrowser plugin
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sserrano  
View profile   Translate to Translated (View Original)
 More options Oct 4 2010, 2:55 pm
From: sserrano <sebastian.serr...@gmail.com>
Date: Mon, 4 Oct 2010 11:55:54 -0700 (PDT)
Local: Mon, Oct 4 2010 2:55 pm
Subject: how to login with facebook on iphone/phonegap with the ChildBrowser plugin
Hi
  By demand on stackoverflow, I write a blog post about how I
implement the login with facebook in one of my apps using the
ChildBrowser plugin.
  The link to the post: http://www.pushittolive.com/post/1239874936/facebook-login-on-iphone-...
  I hope is useful for others.

Cheers, Sebastian Serrano


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse MacFadyen  
View profile   Translate to Translated (View Original)
 More options Oct 4 2010, 3:05 pm
From: Jesse MacFadyen <jesse.macfad...@nitobi.com>
Date: Mon, 4 Oct 2010 12:05:25 -0700
Local: Mon, Oct 4 2010 3:05 pm
Subject: Re: [PhoneGap] how to login with facebook on iphone/phonegap with the ChildBrowser plugin

Nice, this is exactly what my hope was when I added the locationChange
event.
Super simple, and this same approach can easily be applied to other
services, including twitter, ...

Would you consider adding this as a js only plugin in the plugins repo?
- ie. a plugin that is dependent on ChildBrowser, and simply wraps some of
the functions.

Cheers,
  Jesse

On Mon, Oct 4, 2010 at 11:55 AM, sserrano <sebastian.serr...@gmail.com>wrote:

--
--
Jesse MacFadyen
{
  blog:'blogs.nitobi.com/jesse',
  email:'jesse.macfad...@nitobi.com <email%3A%27jesse.macfad...@nitobi.com>
',
  company:
  {
    name:'Nitobi Software',
    site:'www.nitobi.com',
    phone:
    {
      office:'+1 (604) 685-9287',
      tollFree:'1-866-632-2777'
     }
  }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sebastian serrano  
View profile  
 More options Oct 4 2010, 3:35 pm
From: sebastian serrano <sebast...@livemade.com>
Date: Mon, 4 Oct 2010 16:35:17 -0300
Local: Mon, Oct 4 2010 3:35 pm
Subject: Re: [PhoneGap] how to login with facebook on iphone/phonegap with the ChildBrowser plugin

Yes, sure.

Cheers, Sebastian
-
http://www.sserrano.com

2010/10/4 Jesse MacFadyen <jesse.macfad...@nitobi.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Samuel Michelot  
View profile  
 More options Oct 4 2010, 4:15 pm
From: Samuel Michelot <samuel.miche...@gmail.com>
Date: Mon, 4 Oct 2010 13:15:19 -0700 (PDT)
Local: Mon, Oct 4 2010 4:15 pm
Subject: Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin
This is great! I wanted to do that since a long time !
Thanks a lot Sebastian!

On Oct 4, 9:35 pm, sebastian serrano <sebast...@livemade.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tdawg  
View profile  
 More options Oct 19 2010, 1:58 pm
From: tdawg <tphar...@gmail.com>
Date: Tue, 19 Oct 2010 10:58:02 -0700 (PDT)
Local: Tues, Oct 19 2010 1:58 pm
Subject: Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin
Any chance on a idiot proof guide?

I got my whole phonegap/jqtouch app built except the iPhone/Twitter
parts.

I tried your code, I didn't quite get how to use the python script.
Then I get it to execure the JS code with a "onClick" event, but,
nothing happens after that.

T-

On Oct 4, 9:55 pm, sserrano <sebastian.serr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse MacFadyen  
View profile  
 More options Oct 19 2010, 2:32 pm
From: Jesse MacFadyen <jesse.macfad...@nitobi.com>
Date: Tue, 19 Oct 2010 11:32:40 -0700
Local: Tues, Oct 19 2010 2:32 pm
Subject: Re: [PhoneGap] Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin

I have checked in a plugin-extension to use ChildBrowser to connect to
FaceBook

http://github.com/purplecabbage/phonegap-plugins/tree/master/iPhone/C...

Cheers,
  Jesse

--
--
Jesse MacFadyen
{
  blog:'blogs.nitobi.com/jesse',
  email:'jesse.macfad...@nitobi.com <email%3A%27jesse.macfad...@nitobi.com>
',
  company:
  {
    name:'Nitobi Software',
    site:'www.nitobi.com',
    phone:
    {
      office:'+1 (604) 685-9287',
      tollFree:'1-866-632-2777'
     }
  }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse MacFadyen  
View profile  
 More options Oct 19 2010, 2:54 pm
From: Jesse MacFadyen <jesse.macfad...@nitobi.com>
Date: Tue, 19 Oct 2010 11:54:57 -0700
Local: Tues, Oct 19 2010 2:54 pm
Subject: Re: [PhoneGap] Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin

You need to use ChildBrowser as well, what do you mean 'closes your app' ?
Does it launch something in Mobile Safari? Does it crash? What is displayed
in the debugger console?

--
--
Jesse MacFadyen
{
  blog:'blogs.nitobi.com/jesse',
  email:'jesse.macfad...@nitobi.com <email%3A%27jesse.macfad...@nitobi.com>
',
  company:
  {
    name:'Nitobi Software',
    site:'www.nitobi.com',
    phone:
    {
      office:'+1 (604) 685-9287',
      tollFree:'1-866-632-2777'
     }
  }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giacomo Balli  
View profile  
 More options Oct 19 2010, 2:58 pm
From: Giacomo Balli <giacomoba...@gmail.com>
Date: Tue, 19 Oct 2010 11:58:01 -0700 (PDT)
Local: Tues, Oct 19 2010 2:58 pm
Subject: Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin
pretty sweet Jesse, you're on the ball lately!

On Oct 19, 8:32 pm, Jesse MacFadyen <jesse.macfad...@nitobi.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim S  
View profile  
 More options Oct 19 2010, 2:51 pm
From: Tim S <tphar...@gmail.com>
Date: Tue, 19 Oct 2010 21:51:16 +0300
Local: Tues, Oct 19 2010 2:51 pm
Subject: Re: [PhoneGap] Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin

It seems OK, but, it automatically closes my app

On Tue, Oct 19, 2010 at 9:32 PM, Jesse MacFadyen <jesse.macfad...@nitobi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim S  
View profile  
 More options Oct 19 2010, 3:02 pm
From: Tim S <tphar...@gmail.com>
Date: Tue, 19 Oct 2010 22:02:01 +0300
Local: Tues, Oct 19 2010 3:02 pm
Subject: Re: [PhoneGap] Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin

My bad, it simply needed clean build.

On Tue, Oct 19, 2010 at 9:54 PM, Jesse MacFadyen <jesse.macfad...@nitobi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim S  
View profile  
 More options Oct 19 2010, 5:20 pm
From: Tim S <tphar...@gmail.com>
Date: Wed, 20 Oct 2010 00:20:16 +0300
Local: Tues, Oct 19 2010 5:20 pm
Subject: Re: [PhoneGap] Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin

I am not sure if this is useful, but I made additions to your file others
might like... I also know there are a ton more coders, who can do this
millions of times better, but, I just thought I'd share back:

In the FB Connect, I added this row:

authorize_url += "&scope=offline_access,publish_stream";

In index page added this function:

function onFBPost(FBID){

 var req = window.plugins.fbConnect.wallPost(FBID);

}

and in FBConnect.js added the following:

FBConnect.prototype.wallPost = function(FBID)

{

var url = "https://graph.facebook.com/"+FBID+"/feed";

var params = "access_token="+this.accessToken+"&message=my test message";

//alert(url+params);

var req = new XMLHttpRequest();

 req.open("POST", url, true);

 //Send the proper header information along with the request

req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

req.setRequestHeader("Content-length", params.length);

req.setRequestHeader("Connection", "close");

 req.onreadystatechange = function() {//Call a function when the state
changes.

 if(req.readyState == 4 && req.status == 200) {

//alert(req.responseText);

 }

}

req.send(params);

 return req;


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse MacFadyen  
View profile  
 More options Oct 19 2010, 6:57 pm
From: Jesse MacFadyen <jesse.macfad...@nitobi.com>
Date: Tue, 19 Oct 2010 15:57:41 -0700
Local: Tues, Oct 19 2010 6:57 pm
Subject: Re: [PhoneGap] Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin

Cool!
Why don't you fork the repo and check this in?

--
--
Jesse MacFadyen
{
  blog:'blogs.nitobi.com/jesse',
  email:'jesse.macfad...@nitobi.com <email%3A%27jesse.macfad...@nitobi.com>
',
  company:
  {
    name:'Nitobi Software',
    site:'www.nitobi.com',
    phone:
    {
      office:'+1 (604) 685-9287',
      tollFree:'1-866-632-2777'
     }
  }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim S  
View profile  
 More options Oct 20 2010, 10:21 am
From: Tim S <tphar...@gmail.com>
Date: Wed, 20 Oct 2010 17:21:56 +0300
Local: Wed, Oct 20 2010 10:21 am
Subject: Re: [PhoneGap] Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin

Does anyone have an idea how to do a similar thing with twitter?  I'd like
to get a list of followers.

On Wed, Oct 20, 2010 at 1:57 AM, Jesse MacFadyen <jesse.macfad...@nitobi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tdawg  
View profile  
 More options Oct 20 2010, 10:23 am
From: tdawg <tphar...@gmail.com>
Date: Wed, 20 Oct 2010 07:23:19 -0700 (PDT)
Local: Wed, Oct 20 2010 10:23 am
Subject: Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin
anyone have an idea how to do the same thing for twitter?  I'd ike to
grab a list of followers

On Oct 20, 1:57 am, Jesse MacFadyen <jesse.macfad...@nitobi.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tdawg  
View profile  
 More options Oct 20 2010, 6:47 pm
From: tdawg <tphar...@gmail.com>
Date: Wed, 20 Oct 2010 15:47:30 -0700 (PDT)
Local: Wed, Oct 20 2010 6:47 pm
Subject: Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin
I found this link:
http://www.moretechtips.net/2009/10/twitter-friends-followers-widget-...

But I haven't succeeded yet at putting into phonegap, will send back
here when I do.

On Oct 20, 5:23 pm, tdawg <tphar...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim S  
View profile  
 More options Oct 20 2010, 7:19 pm
From: Tim S <tphar...@gmail.com>
Date: Thu, 21 Oct 2010 02:19:22 +0300
Local: Wed, Oct 20 2010 7:19 pm
Subject: Re: [PhoneGap] Re: how to login with facebook on iphone/phonegap with the ChildBrowser plugin

include twitter.js below your jquery include
include the required css in the <head> tag (this is copied from their page)

<style>

/* container */

div.twitter-friends{ }

/*---- Users ----*/

div.tf-users{

/* fixed height so container will not flicker within transitions */

height:48px;

border:silver 1px solid;

overflow:hidden;

background-color:#eaeaea;

}

/* user img link*/

div.tf-users a{

display:block;

float:left;

}

/* user img */

div.tf-users img{ }

/* ---- Info Link ----- */

div.tf-info{

text-align:right;

}

div.tf-info a{

text-decoration:none;

font-size:9px;

font-weight:bolder;

color:gray;

font-family:tahoma;

}

</style>

<!-- end twitter css-->

In the html of your document include:

<ul class=rounded id=twitter-friends options="{

debug:0

,friends:0

,username:'tdawgpharaoh'

}"></ul>

** the original was a div, I changed to UL because I use jqtouch.

Styling changes after that happen in twitter.js

  twitter.js
12K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »