title: Official Facebook examples crashes (GraphApiSample)
body: <p>I started to work with <strong>facebook-android-sdk-3.5.2.</strong></p>
  
  <p>The SDK project also contains varius sample examples for using the api like:</p>
  
  <ul>
  <li>HelloFacebookSample: A simple activity you can log in and do stuff, it works great.</li>
  </ul>
  
  <p>Next thing i wanted to try the next example called:</p>
  
  <ul>
  <li>GraphApiSample, which <strong>i had problem with.</strong></li>
  </ul>
  
  <p>After i launch this app, i got this error: (Logcat):</p>
  
  <pre><code>11-11 15:22:40.008: E/AndroidRuntime(14048): FATAL EXCEPTION: main
  11-11 15:22:40.008: E/AndroidRuntime(14048): java.lang.RuntimeException: Unable to resume activity {com.facebook.samples.graphapi/com.facebook.samples.graphapi.GraphApiSampleActivity}: java.lang.IllegalArgumentException: Both context and applicationId must be non-null
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2621)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2649)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.ActivityThread.access$700(ActivityThread.java:134)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.os.Handler.dispatchMessage(Handler.java:99)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.os.Looper.loop(Looper.java:137)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.ActivityThread.main(ActivityThread.java:4867)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at java.lang.reflect.Method.invokeNative(Native Method)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at java.lang.reflect.Method.invoke(Method.java:511)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at dalvik.system.NativeStart.main(Native Method)
  11-11 15:22:40.008: E/AndroidRuntime(14048): Caused by: java.lang.IllegalArgumentException: Both context and applicationId must be non-null
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at com.facebook.AppEventsLogger.activateApp(AppEventsLogger.java:308)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at com.facebook.AppEventsLogger.activateApp(AppEventsLogger.java:292)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at com.facebook.samples.graphapi.GraphApiSampleActivity.onResume(GraphApiSampleActivity.java:76)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1199)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.Activity.performResume(Activity.java:5121)
  11-11 15:22:40.008: E/AndroidRuntime(14048):    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2611)
  </code></pre>
  
  <p>Well i see:</p>
  
  <p><strong>Caused by: java.lang.IllegalArgumentException: Both context and applicationId must be non-null</strong></p>
  
  <p>Okay, but i did not changed a thing in the code. <strong>It should be work, right?</strong></p>
  
  <p>I tried to:</p>
  
  <ul>
  <li><p>Delete project, and import</p></li>
  <li><p>Delete project, and add a new android project from existing code</p></li>
  <li><p>Clean my project</p></li>
  <li><p>Delete facebook sdk library dependency and reimport, then clean again.</p></li>
  </ul>
  
  <p>Same result after all of these.</p>
  
  <p>Please if somebody is familiar with this prob. help me.</p>
  
  <p><strong>E D I T:</strong></p>
  
  <p>For some reason, this official facebook sample does not contains appId.
  Thanks for the suggest!</p>