Discuz! Board's Archiver

bosko posted on 2012-7-23 00:34

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



赵韬 posted on 2012-7-23 17:56

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]

Powered by Discuz! X1.5 Archiver   © 2001-2010 Comsenz Inc.