Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2441] Android: Ability to use Graph API calls for Ti.Facebook.execute

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-08T23:20:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterDaniel Arroyo
AssigneeIngo Muschenetz
Created2011-04-15T03:19:55.000+0000
Updated2017-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;
        }
    }

Comments

  1. Lee Morris 2017-06-08

    Closing ticket as there has been no input for the last 6 years. Any problems, please file a new ticket.

JSON Source