if (session == null){
Log.i("dd", "session value in winLoose 1");
session = new Session(this);
Session.setActiveSession(session);
} else if (session.isOpened())
{
Session.setActiveSession(session);
}
Request.Callback callback = new Request.Callback()
{
public void onCompleted(Response response)
{
FacebookRequestError error = response.getError();
if (error != null) Log.d("fb","error"); else Log.d("fb","Success"); } };
Request request = Request.newUploadPhotoRequest(session, bitmap, callback);
request.executeAsync();
My session is opened When I run my above code & when I am trying to post my screenshot to FB via this code. Then this code Toast me (#200)
requires extended permission publish_actions