title: Error on application ID of facebook app in Manifest
body: <p>Here is a little detail about my app. I have a tab layout using <code>Fragments</code> and a <code>ViewPager</code>. On the third tab, I have a Google Map V2. Now, whenever the user of the app would be in a certain landmark, he can share the details about that landmark on facebook. I have successfully created the map, but the details about landmarks are yet to be done. Now about the "share" function of facebook, I have followed the steps on <a href="https://developers.facebook.com/docs/android/share-dialog/" rel="noreferrer">facebook developers</a>. When I run the app, I get the error:</p>
  
  <pre><code>10-17 14:19:06.856: E/AndroidRuntime(2180): java.lang.NullPointerException: Argument 'applicationId' cannot be null
  </code></pre>
  
  <p>And after searching, I found out that I need to put the application ID on the <code>manifest.xml</code>.</p>
  
  <p><strong>Here is my meta-data:</strong></p>
  
  <pre><code>    &lt;meta-data
          android:name="com.google.android.maps.v2.API_KEY"
          android:value="the key from google api console"
  
           /&gt;
      &lt;meta-data
          android:name="com.facebook.sdk.ApplicationId"
          android:value="the key from fb devs"
  
          /&gt;
  </code></pre>
  
  <p><strong>However, I still get the error:</strong></p>
  
  <pre><code>10-17 14:44:03.076: E/AndroidRuntime(2240): java.lang.NullPointerException: Argument 'applicationId' cannot be null
  </code></pre>
  
  <p>The whole facebook share dialog is located in a <code>Fragment</code>. </p>
  
  <p>Here it is:</p>
  
  <p><strong>TabFour.java</strong></p>
  
  <pre><code>public class TabFour extends Fragment {
  private UiLifecycleHelper uiHelper;
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.activity_tab_four, container, false);
  
      return rootView;
  }
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      uiHelper = new UiLifecycleHelper(getActivity(), callback);
      uiHelper.onCreate(savedInstanceState);
  
      OpenGraphAction action = GraphObject.Factory.create(OpenGraphAction.class);
      action.setProperty("book", "https://example.com/book/Snow-Crash.html");
  
      @SuppressWarnings("deprecation")
      FacebookDialog shareDialog = new FacebookDialog.OpenGraphActionDialogBuilder(getActivity(), action, "books.reads", "book")
              .build();
      uiHelper.trackPendingDialogCall(shareDialog.present());
  }
  
  
  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      uiHelper.onActivityResult(requestCode, resultCode, data, new FacebookDialog.Callback() {
          @Override
          public void onError(FacebookDialog.PendingCall pendingCall, Exception error, Bundle data) {
              Log.e("Activity", String.format("Error: %s", error.toString()));
          }
  
          @Override
          public void onComplete(FacebookDialog.PendingCall pendingCall, Bundle data) {
              Log.i("Activity", "Success!");
          }
      });
  }
  
  
  
  @Override
  public void onResume() {
      super.onResume();
      uiHelper.onResume();
  }
  
  @Override
  public void onSaveInstanceState(Bundle outState) {
      super.onSaveInstanceState(outState);
      uiHelper.onSaveInstanceState(outState);
  }
  
  @Override
  public void onPause() {
      super.onPause();
      uiHelper.onPause();
  }
  
  @Override
  public void onDestroy() {
      super.onDestroy();
      uiHelper.onDestroy();
  }
  private Session.StatusCallback callback = new Session.StatusCallback() {
  
  
      @Override
      public void call(Session session, SessionState state,
              Exception exception) {
          // TODO Auto-generated method stub
  
      }
  };
  </code></pre>
  
  <p>}</p>
  
  <p><strong>Here is my <a href="http://shrib.com/appID" rel="noreferrer">logcat.</a></strong></p>