package edu.deanza.calendar;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.facebook.AccessToken;
import com.facebook.FacebookSdk;
import com.facebook.GraphRequest;
import com.facebook.GraphResponse;
import com.facebook.HttpMethod;
import com.facebook.appevents.AppEventsLogger;

import edu.deanza.R;

public class SearchActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search);

        //track analytics using FB--can remove feature later
        FacebookSdk.sdkInitialize(getApplicationContext());
        AppEventsLogger.activateApp(this);

    }

    private void FacebookStalking()
    {
        long [] facebookGroups = {885940821502890L, //De Anza DECA Club
                219645201389350L, //VIDA: Vasconcellos Institute for Democracy In Action
                2236277819L, //De Anza College
        };
        long [] facebookPages = {265047173570399L, //ICC
                192472534143760L //DASB
        };
    }

    private void grabFacebookPage(int id)
    {
        /* make the API call */
        new GraphRequest(
                AccessToken.getCurrentAccessToken(),
                "/" + id + "/events",
                null,
                HttpMethod.GET,
                new GraphRequest.Callback() {
                    public void onCompleted(GraphResponse response) {
                        /* handle the result */
                    }
                }
        ).executeAsync();
    }
}
@@ -103,223 +103,8 @@
 e;%0A%0A
-import com.facebook.AccessToken;%0Aimport com.facebook.FacebookSdk;%0Aimport com.facebook.GraphRequest;%0Aimport com.facebook.GraphResponse;%0Aimport com.facebook.HttpMethod;%0Aimport com.facebook.appevents.AppEventsLogger;%0A%0A
 impo
@@ -352,1036 +352,8 @@
     
-    //track analytics using FB--can remove feature later%0A        FacebookSdk.sdkInitialize(getApplicationContext());%0A        AppEventsLogger.activateApp(this);%0A%0A    %7D%0A%0A    private void FacebookStalking()%0A    %7B%0A        long %5B%5D facebookGroups = %7B885940821502890L, //De Anza DECA Club%0A                219645201389350L, //VIDA: Vasconcellos Institute for Democracy In Action%0A                2236277819L, //De Anza College%0A        %7D;%0A        long %5B%5D facebookPages = %7B265047173570399L, //ICC%0A                192472534143760L //DASB%0A        %7D;%0A    %7D%0A%0A    private void grabFacebookPage(int id)%0A    %7B%0A        /* make the API call */%0A        new GraphRequest(%0A                AccessToken.getCurrentAccessToken(),%0A                %22/%22 + id + %22/events%22,%0A                null,%0A                HttpMethod.GET,%0A                new GraphRequest.Callback() %7B%0A                    public void onCompleted(GraphResponse response) %7B%0A                        /* handle the result */%0A                    %7D%0A                %7D%0A        ).executeAsync();%0A    
 %7D
+%0A
 %0A%7D

Remove non-MVP Graph API calls