Skip to content

Instantly share code, notes, and snippets.

@surma
Created October 26, 2011 17:48
Show Gist options
  • Save surma/1317129 to your computer and use it in GitHub Desktop.
Save surma/1317129 to your computer and use it in GitHub Desktop.
#if UNITY_EDITOR
private static void _init(string AppId) {}
private static void _authorize(int permissions) {getInstance().loggedOut();}
private static void _logout() {getInstance().loggedOut();}
private static void _graphRequest(string methodname, string[] param, string method) {getInstance().requestFailed("Not implemented");}
private static void _deleteSession() {}
#elif UNITY_IPHONE
[System.Runtime.InteropServices.DllImport("__Internal")]
extern static private void _init(string AppId);
[System.Runtime.InteropServices.DllImport("__Internal")]
extern static private void _authorize(int permissions);
[System.Runtime.InteropServices.DllImport("__Internal")]
extern static private void _logout();
[System.Runtime.InteropServices.DllImport("__Internal")]
extern static private void _graphRequest(string methodname, string[] param, string method);
[System.Runtime.InteropServices.DllImport("__Internal")]
extern static private void _deleteSession();
#else
private static void _init(string AppId) {}
private static void _authorize(int permissions) {getInstance().loggedOut();}
private static void _logout() {getInstance().loggedOut();}
private static void _graphRequest(string methodname, string[] param, string method) {getInstance().requestFailed("Not implemented");}
private static void _deleteSession() {}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment