[TIMOB-2441] Android: Ability to use Graph API calls for Ti.Facebook.execute
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-08T23:20:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Daniel Arroyo |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:19:55.000+0000 |
Updated | 2017-06-08T23:20:34.000+0000 |
Description
Currently the Ti.Facebook.execute parameter "method" can only take Old REST API method names. Suggest that new method names (besides "me" already supported are allowed).
The codessnippet below from FBRequest.java shows why only "me" would use the Graph API method. Suggest allowing any Graph call
private String urlForMethod(String method) {
String cleanMethod = method.replace("facebook.", "");
if (isSpecialMethod()) {
return mSession.getApiSecureURL() + cleanMethod ;
} else if (method == "me") {
return mSession.getGraphApiSecureURL() + method;
} else if (FacebookModule.usingOauth ){
return mSession.getApiSecureURL() + cleanMethod;
} else {
return mSession.getApiURL() + cleanMethod;
}
}
Closing ticket as there has been no input for the last 6 years. Any problems, please file a new ticket.