*****今のところ、Facebookのbugらしく、Graph APIからのwith_tagsは投稿できない様子。with_tagsやtoを投稿しても消えてしまうみたい。
http://developers.facebook.com/bugs/334390446603278***
FacebookのGraphAPIを使って、"○○さんと一緒にいます"というような投稿をする場合、実際にFacebookにpostする際には"with_tags"というパラメーターをつける。
Graph APIのドキュメントによれば
とのことなので
Titaniumでのリクエストの書き方としては、paramatersという連想配列を定義して、
Ti.Facebook.requestWithGraphPathの第二引数に指定するのが、汎用的な方法
http://developers.facebook.com/bugs/334390446603278***
FacebookのGraphAPIを使って、"○○さんと一緒にいます"というような投稿をする場合、実際にFacebookにpostする際には"with_tags"というパラメーターをつける。
Graph APIのドキュメントによれば
with_tags | Objects (Users, Pages, etc) tagged as being with the publisher of the post ("Who are you with?" on Facebook) | read_stream | objects containing id and name fields, encapsulated in a data[] array |
Titaniumでのリクエストの書き方としては、paramatersという連想配列を定義して、
Ti.Facebook.requestWithGraphPathの第二引数に指定するのが、汎用的な方法
function postFB(parameters) {
if(!Ti.Facebook.loggedIn) {
Ti.Facebook.authorize();
}
var paramater = {
message : "with Friend, xxx",
with_tags : {
data : [{
id : id,
name : name
}]
}
};
Ti.Facebook.requestWithGraphPath('me/feed', parameters, "POST", function(e) {
if(e.success) {
alert("Success" + e.result);
}
});
}