0

I cant find way to post new status on Facebook via Easy Facebook SDK. Im logging in, everythings is ok. Then trying to fire up this line of code

       Status facebookStatus;
       /* some code */
       facebookStatus.setMessage("Some text");

aaaand im getting force close dialog :S

Site: http://www.easyfacebookandroidsdk.com/

Reference: http://www.easyfacebookandroidsdk.com/doc/com/easy/facebook/android/data/Status.html#setMessage%28java.lang.String%29

Jakub Pomykała
  • 2,082
  • 3
  • 27
  • 58

1 Answers1

3

I guess that you haven't created the Status object. If that's the case, then change the first line to:

Status facebookStatus = new Status();
podkova
  • 1,019
  • 7
  • 16
  • But still there is no post on my wall/timeline :S – Jakub Pomykała Jul 26 '13 at 19:58
  • 1
    @Evelan: the information you provided was enough to solve the crash issue, but with two lines of code no more magic is possible, I'm affraid. – podkova Jul 26 '13 at 20:10
  • I see, but there is no more code associated with facebook status. Standard example code from site to login + this what I wrote. – Jakub Pomykała Jul 26 '13 at 20:17
  • @Evelan: the example could be broken. And your app config could be broken too. Does `lolcat` say anything interesting when you try to post the status? – podkova Jul 26 '13 at 20:23