Facebook function do nothing
[i=s] Last edited by bosko on 2012-7-23 00:44 [/i]Hi!
I'm using Game engine v1.5.2.
I'm trying to implement facebook feature to my game but it doesn't work:
function post2facebook() {
var d = dict([["name","Papaya"],["caption","test"],
["description", "test"],
["picture","http://xxxx"]]);
facebook(FACEBOOK_POST, d, onFacebookPosted);
}
function onFacebookPosted(ret, response) {
trace("ret", ret);
trace("response", response);
if (ret == 0) {
post2facebook();
}
}
post2facebook();
When this is called, all I see is redirect to a empty facebook page for a second and then redirect back to game. But nothing happens. No post on my facebook profile. No log message in console with ret and response. So I guess onFacebookPosted was never called... What could be the problem here?
Thanks.
Bosko
Most likely the app does not connect to Facebook. It might be the network problem.
If it connects successfully, the log will output some Log with keywords "Facebook"
Page:
[1]