Discuz! Board

 

 

Search
Discuz! Board Forum Integration Questions Facebook function do nothing
View: 618|Reply: 1
go

Facebook function do nothing

Rank: 3Rank: 3

Post on 2012-7-23 00:34 |All posts
Last edited by bosko on 2012-7-23 00:44

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



Rank: 4

Post on 2012-7-23 17:56 |All posts
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"
Security Q&A Change Security code Change

Archiver|Comsenz Inc.

All time is GMT+8, 2013-5-20 08:32 , Processed in 0.064027 second(s), 10 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.