我使用"ShareDialog"分享从我的应用程序到Facebook墙的链接.当我发布链接时,它仅在用户的时间轴中显示内容,而不是在主页中.我做错了什么?
我正在做那样的事情:
// This is how i invokes the shareDialog
FacebookDialog shareDialog = createShareDialogBuilderForLink().build();
private FacebookDialog.ShareDialogBuilder createShareDialogBuilderForLink() {
return new FacebookDialog.ShareDialogBuilder(this)
.setPicture("picture url")
.setName("name")
.setLink("link url");
}
Run Code Online (Sandbox Code Playgroud)
用户的时间表:

主页:

在主页中只显示应用程序的名称,该应用程序从我设置的链接(谷歌播放中的应用程序)中获取它,而不显示链接的内容(描述,名称,标题...).
我在Bootstrap 3工作,我试图在输入框的右侧获得一个日历图标.
我的HTML看起来像这样:
<div class="col-md-12">
<div class='right-inner-addon col-md-2 date datepicker'
data-date-format="yyyy-mm-dd">
<input name='name' value="" type="text" class="form-control date-picker"
data-date-format="yyyy-mm-dd"/>
<i class="fa fa-calendar"></i>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我试过position: absolute这样的:
.right-inner-addon i {
position: absolute;
right: 5px;
top: 10px;
pointer-events: none;
font-size: 1.5em;
}
.right-inner-addon {
position: relative;
}
Run Code Online (Sandbox Code Playgroud)
但是当我这样做时,它会在一个地方看起来很棒,但在另一个实例中不能正确定位.
我也试着看看我是否可以用它text-indent来看看它是否会起作用,但它有同样的效果.
.right-inner-addon i,
.form-group .right-inner-addon i {
display: inline-block;
z-index: 3;
text-indent: -15px;
font-size: 1.3em;
}
Run Code Online (Sandbox Code Playgroud)
css twitter-bootstrap font-awesome glyphicons twitter-bootstrap-3
如果对象(国家/地区)不为null,我想返回一个视图.但是我收到错误"Not Not code paths返回一个值"
我的代码看起来像这样
public ActionResult Show(int id)
{
if (id != null)
{
var CountryId = new SqlParameter("@CountryId", id);
Country country = MyRepository.Get<Country>("Select * from country where CountryId=@CountryId", CountryId);
if (country != null)
{
return View(country);
}
}
}
Run Code Online (Sandbox Code Playgroud)