I have a custom dailog with a spinner to choose who can see our post on userwall, i want to choose and post on my wall, but not sure how to put privacy settings in wall and send it.
getId = getfbId(id);
if (getId != null) {
String url = Constants.fbindexURL + "lang=" + lang + "&lat=" + lat + "&getfbid=" + getId;
myplace = Constants.loadedplace.getCityName();
parameters.putString("name", getString(R.string.reply));
parameters.putString("caption", fbUuer + " in " + Constants.loadedplace.getCityName());
parameters.putString("link", url);
parameters.putString("picture", Constants.ImageURL);
//------------> parameters.putString("privacy", );
below is code for getting the values of my spinner
spinner = (Spinner)dialog.findViewById(R.id.spinner);
spinner.setOnItemSelectedListener(new Adapter
View.OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
String choose = spinner.getSelectedItem().toString();
}
public void onNothingSelected(AdapterView<?> parent) {
}
});
can someonesuggest how can i choose who to see from the spinner and post accordingly on my wall. Any help is appreciated