Hi Friends,
I am new to facebook implementation in android. I am trying to
implement facebook in my android application. I implemented using
facebook-android-sdk in first activity. I want the same in the second
activity also. Second activity facebook publish button is not working
even though i already logged in the first activity and giving some
error. It's working well if i login in the second activity also. I was
fed up with this problem.
The same thing happening vice versa.( from second to first ) Can I
work with unique session?
I want login facebook in one activity and post(publish) in anyone of
other activities.
My code is as fallowing in the first activity,
mFacebook = new Facebook(); mAsyncRunner = new
AsyncFacebookRunner(mFacebook);
SessionStore.restore(mFacebook, this);
SessionEvents.addAuthListener(new SampleAuthListener());
SessionEvents.addLogoutListener(new SampleLogoutListener());
mLoginButton.init(mFacebook, PERMISSIONS);
mPostButton.setOnClickListener()
{// some code to post a comment }
I written the same in 2nd activity also. Immediate Help Required
Please.
Thanks and Regards,
Kiran
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en