Reputation: 4563
Following the tutorial on Facebook Android SDK Official Site, in the place where I set the uiHelper .onActivityResult
, I realised that.. whether I post something to the web or not (even if I simply press the back button directly), "onSuccess" would be always called.
I also discovered this Android Simple Facebook library, which simplify the process a lot. However, following the tutorial, I found that no matter I succeeded with posting or not.. I ended up having "onFail" called.
I wonder what should I do now to verify if user has successfully posted the result
Update: I realised a similar question with solution is posted here
Upvotes: 3
Views: 871
Reputation: 4683
Regarding android-simple-facebook:
Few things you need to double check in your code as described here:
onResume()
onActivityResult()
Regarding Fragments
there is no special stuff you should take care for. Please check this sample.
You can try the sample app and see that it works for you. This is the sample app on Google Play and this is the source. The sample app includes Fragment
.
Let me know if it worked for you :)
Upvotes: 1