--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
It seems OK, but, it automatically closes my app
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;
<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