在基于示例使用Java代码创建社区之后,我可以通过搜索"All Connections“找到该社区,但是如果我选择Community菜单,那么任何子菜单选项: I'm Owner,I'm Member,Public ...新社区未列出。即使在几个小时或几天之后,它也不会出现。API中有没有我需要设置的参数,或者这是连接配置设置问题?
发布于 2013-10-29 21:17:13
和Swati聊天..。
你有什么版本的连接?
您是否检查过该社区名称是否已经存在?
这段代码适用于我..。您必须发布您的代码以征求意见(或代码示例)。
CommunityService communityService = new CommunityService();
Community community = new Community(communityService, "");
community.setTitle("Test Community 1ab" + System.currentTimeMillis());
community.setContent("Test Community updated by Update Community Java snippet");
community.setCommunityType("private");
List<String> tags = new ArrayList<String>();
tags.add("tag1");
tags.add("tag2");
community.setTags(tags);
community = community.save();https://stackoverflow.com/questions/19573777
复制相似问题