I am following the android tutorial :http://developers.facebook.com/docs/howtos/androidsdk/3.0/feed-dialog/
And there is a error occurs on this line:
new WebDialog.FeedDialogBuilder(getActivity(),
The method getActivity() is undefined for type MainActivity.
Any idea?
use
instead of
becuase in example link he is using Fragment .in case of Fragment getActivity () return Activity this fragment is currently associated with