I've got the GRAPH_REQUEST to work (Android for now).
What I did:
Add a new block
C:\Program Files\Stencyl\plaf\haxe\extensions\facebook\blocks.xml <block tag="fb-friendlist" spec="Facebook Friendlist" code="FacebokExtension.facebookFriendlist();" type="action" color="gray" returns="void">
<fields>
</fields>
Add the functions
C:\Program Files\Stencyl\plaf\haxe\extensions\facebook\FacebokExtension.hx public static function facebookFriendlist( ) : Void {
fb.addEventListener( HypFacebookRequestEvent.GRAPH_REQUEST_RESULTS, _onGraphResults );
// fb.call( GRAPH_REQUEST("/me") );
fb.call( GRAPH_REQUEST("/me/friends") );
}
public static function _onGraphResults( event : HypFacebookRequestEvent ) {
trace( 'sResult:'+event.sResult );
}
Updated thid file
C:\Program Files\Stencyl\plaf\haxe\extensions\facebook\project\android\fr\hyperfiction\HypFacebook.javathis way
https://github.com/vinu/HypFacebook/commit/4ccd37ca1ce9177f29fc1b6d71c2c62099479b85because of
http://www.openfl.org/community/general-discussion/hyperextensions-bunch-native-extensions-your-project/?ccm_paging_p=2Now I recieve the list of friends
fb.call( GRAPH_REQUEST("/me/friends") );
and fb.call( GRAPH_REQUEST("/me") ); works also, but only on my nexus one.
If I try on 2 other android devices (not google), the app crashes. Does anybody have an idea, what can be the reason?