Android (100)参数对象是必需的

Android (100)参数对象是必需的,android,facebook,facebook-graph-api,user-interface,Android,Facebook,Facebook Graph Api,User Interface,我使用的是Facebook SDK 3.7,出现错误100参数对象是必需的。如何使用经度和纬度发布带有照片的位置。我不明白,请帮帮我。我正在使用/me/object/place发布带有图片的位置。这对我很有用 Bundle postParams = new Bundle(); postParams.putString("fb:app_id", "234256810031533"); postParams.putString("name", "test app");

我使用的是Facebook SDK 3.7,出现错误100参数对象是必需的。如何使用经度和纬度发布带有照片的位置。我不明白,请帮帮我。我正在使用/me/object/place发布带有图片的位置。

这对我很有用

    Bundle postParams = new Bundle();
    postParams.putString("fb:app_id", "234256810031533");
    postParams.putString("name", "test app");
    postParams.putByteArray("picture", MainActivity.byteArray); 
    postParams.putString("og:type", "place");
    postParams.putString("place:location:latitude", "90");
    postParams.putString("place:location:longitude", "45");
    postParams.putString("access_token", pageaccessToken);
    /* make the API call */


    Request.Callback callback= new Request.Callback() {
        public void onCompleted(Response response) {
            FacebookRequestError error = response.getError();
            if (error != null) {

                Toast.makeText(getApplicationContext(),
                         error.getErrorMessage(),
                         Toast.LENGTH_SHORT).show();

                }
            else {
                JSONObject graphResponse = response.getGraphObject()
                        .getInnerJSONObject();
                @SuppressWarnings("unused")
                String postId = null;
                try {
                    postId = graphResponse.getString("id");
                } catch (JSONException e) {
                    Log.i(TAG, "JSON error " + e.getMessage());
                }

                Toast.makeText(getApplicationContext(),
                        "Successfully Shared", Toast.LENGTH_LONG)
                        .show();

            }
            finish();
        }
    };

    Request request = new Request(session, "/me/objects/place", postParams, 
                          HttpMethod.POST, callback);

    RequestAsyncTask task = new RequestAsyncTask(request);
    task.execute();

对你来说很好,为什么你认为将图像发布到某人的时间线的javascript解决方案适用于通过Android SDK发布照片坐标时遇到问题的人?你想回答什么问题?
FB.api('/me/objects/[namespace]:place',
'post', {
"access_token" : FB.getAuthResponse()['accessToken'],
object: {'url': 'test',
type': '[namespace]:place',
'title': 'test',
'image': 'test'
}
},function (response) {
console.log(response);
if (!response || response.error) {
alert('Error occured');
}
}
);