Skip to content

Commit

Permalink
Merge pull request #4 from hyperfiction/dev
Browse files Browse the repository at this point in the history
Merge graph_request fix
  • Loading branch information
Louis Beltramo committed Jul 27, 2013
2 parents 9a8f745 + e304ad8 commit d75b56f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 8 additions & 6 deletions project/android/fr/hyperfiction/HypFacebook.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,15 @@ public void graph_request( String sGraphRequest , String sKeys , String sVals ,
Bundle params = stringTo_bundle( sKeys , sVals );

final Request req = new Request( Session.getActiveSession( ) , sGraphRequest , params , HttpMethod.valueOf( sMethod ) , listener_request );
_mSurface.queueEvent(new Runnable() {
@Override
public void run() {
trace( "sync request...");
req.executeAndWait();
GameActivity.getInstance( ).runOnUiThread(
new Runnable() {
@Override
public void run() {
trace( "sync request...");
req.executeAndWait();
}
}
});
);
}

/**
Expand Down
7 changes: 6 additions & 1 deletion src/fr/hyperfiction/HypFacebook.hx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ import nme.events.EventDispatcher;
}

public function connectForPublish( allowUI : Bool, permissions : Array<String> ) : Bool {
trace("connect for publish");
trace("************************************************************");
trace("************************************************************");
trace("* connect for publish *");
trace("* DO NOT USE: http://stackoverflow.com/questions/15840893/facebook-android-sdk-session-openforpublish-not-creating-a-new-session" );
trace("* use openForRead, then requestNew_publish_permissions *");
trace("************************************************************");

var bSessionValid = false;

Expand Down

0 comments on commit d75b56f

Please sign in to comment.