Skip to content
This repository was archived by the owner on Nov 25, 2019. It is now read-only.

Commit ad698ae

Browse files
author
yaohuang
committed
Microsoft.Aspnet.Mvc.Facebook changes:
Fixed the bug where Facebook Object can bind to nothing but "friend" Updated the Facebook SDK reference to v6.1.1-beta (Verified that the mainline scenario still works: authorization, getting user data, friends's data and other facebook objects such as likes and books)
1 parent a88383f commit ad698ae

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Microsoft.AspNet.Mvc.Facebook/Microsoft.AspNet.Mvc.Facebook.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
<HintPath>..\..\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll</HintPath>
3838
</Reference>
3939
<Reference Include="Facebook, Version=6.0.10.0, Culture=neutral, PublicKeyToken=58cb4f2111d1e6de, processorArchitecture=MSIL">
40-
<SpecificVersion>False</SpecificVersion>
41-
<HintPath>..\..\packages\Facebook.6.0.24\lib\net40-client\Facebook.dll</HintPath>
40+
<HintPath>..\..\packages\Facebook.6.1.1-beta\lib\net40-client\Facebook.dll</HintPath>
4241
</Reference>
4342
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
4443
<Private>True</Private>

src/Microsoft.AspNet.Mvc.Facebook/Models/FacebookObjectModelBinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private object GetObjects(Type modelType, string userFacebookId, global::Faceboo
5757

5858
if (objects == null || objects.Count == 0/* || Some other time period has been met and we should sync again */)
5959
{
60-
return LoadObjects(client, modelType, userFacebookId, "me/friends" + facebookService.GetFields(modelType));
60+
return LoadObjects(client, modelType, userFacebookId, "me/" + typeName + facebookService.GetFields(modelType));
6161
}
6262

6363
var castedObjects = (IList)Activator.CreateInstance(modelType);

src/Microsoft.AspNet.Mvc.Facebook/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="EntityFramework" version="5.0.0" targetFramework="net40" />
4-
<package id="Facebook" version="6.0.24" targetFramework="net40" />
4+
<package id="Facebook" version="6.1.1-beta" targetFramework="net40" />
55
<package id="Microsoft.AspNet.Mvc" version="4.0.20710.0" targetFramework="net40" />
66
<package id="Microsoft.AspNet.Razor" version="2.0.20710.0" targetFramework="net40" />
77
<package id="Microsoft.AspNet.WebApi" version="4.0.20710.0" targetFramework="net40" />

0 commit comments

Comments
 (0)