diff --git a/facebookios/README.md b/facebookios/README.md
index 87f8f417..8c841694 100644
--- a/facebookios/README.md
+++ b/facebookios/README.md
@@ -1,7 +1,7 @@
facebook
========
-These are bindings to the native Facebook SDK for iOS, currently we bind version 4.0.1.
+These are bindings to the native Facebook SDK for iOS, currently we bind version 4.4.0.
Using
=====
@@ -23,25 +23,25 @@ program, it covers about half of the features in it.
License
=======
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
+You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
+copy, modify, and distribute this software in source code or binary form for use
+in connection with the web services and APIs provided by Facebook.
+
+As with any software that integrates with the Facebook platform, your use of
+this software is subject to the Facebook Developer Principles and Policies
+[http://developers.facebook.com/policy/]. This copyright notice shall be
+included in all copies or substantial portions of the software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE.
-
Authors
=======
diff --git a/facebookios/binding/ApiDefinition.cs b/facebookios/binding/ApiDefinition.cs
index 6f9548b1..50b28da4 100644
--- a/facebookios/binding/ApiDefinition.cs
+++ b/facebookios/binding/ApiDefinition.cs
@@ -1497,10 +1497,6 @@ interface AppGroupContent : CoreKit.Copying, INSSecureCoding
[Export ("groupDescription", ArgumentSemantic.Copy)]
string GroupDescription { get; set; }
- // @property (copy, nonatomic) NSString * groupID;
- [Export ("groupID", ArgumentSemantic.Copy)]
- string GroupID { get; set; }
-
// @property (copy, nonatomic) NSString * name;
[Export ("name", ArgumentSemantic.Copy)]
string Name { get; set; }
@@ -1908,6 +1904,10 @@ interface ShareAPI : Sharing
[Export ("message", ArgumentSemantic.Copy)]
string Message { get; set; }
+ // @property (nonatomic, copy) NSString *graphNode;
+ [Export ("graphNode", ArgumentSemantic.Copy)]
+ string GraphNode { get; set; }
+
// -(BOOL)canShare;
[Export ("canShare")]
bool CanShare ();
diff --git a/facebookios/binding/Facebook.csproj b/facebookios/binding/Facebook.csproj
index 7fe46bfc..7408b7b0 100644
--- a/facebookios/binding/Facebook.csproj
+++ b/facebookios/binding/Facebook.csproj
@@ -9,8 +9,6 @@
Facebook
Resources
Facebook
- 8.0.30703
- 2.0
true
diff --git a/facebookios/binding/Makefile b/facebookios/binding/Makefile
index b44deb2c..baa6ffb8 100644
--- a/facebookios/binding/Makefile
+++ b/facebookios/binding/Makefile
@@ -1,6 +1,6 @@
MONOXBUILD=/Library/Frameworks/Mono.framework/Commands/xbuild
-DATE=20150528
-VERSION=4.2.0
+DATE=20150708
+VERSION=4.4.0
all: Facebook-Unified.dll
@@ -20,9 +20,11 @@ Facebook-Unified.dll: Makefile ApiDefinition.cs StructsAndEnums.cs FBSDKCoreKit.
$(MONOXBUILD) /t:Clean Facebook.csproj
$(MONOXBUILD) /p:Configuration=Release Facebook.csproj
mkdir -p build/unified/
+ mkdir -p ../../../facebookios/build/unified/
cp bin/unified/Release/Facebook.dll build/unified/Facebook.dll
+ cp bin/unified/Release/Facebook.dll ../../../facebookios/build/unified/
prepare: FBSDKCoreKit.a
clean:
- -rm -rf list ios Resources/ FacebookSDKs-iOS-$(DATE)/ bin/ obj/ build/ *.sln *.userprefs *.dll *.o *.zip *.pkg *.mdb *.a
+ -rm -rf list ios Resources/ FacebookSDKs-iOS-$(DATE)/ bin/ obj/ build/ ../../../facebookios/build/ *.sln *.userprefs *.dll *.o *.zip *.pkg *.mdb *.a
diff --git a/facebookios/binding/Properties/AssemblyInfo.cs b/facebookios/binding/Properties/AssemblyInfo.cs
index 1cc2e9ff..17ff2216 100644
--- a/facebookios/binding/Properties/AssemblyInfo.cs
+++ b/facebookios/binding/Properties/AssemblyInfo.cs
@@ -25,7 +25,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
-[assembly: AssemblyVersion ("4.2.0")]
+[assembly: AssemblyVersion ("4.4.0")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
diff --git a/facebookios/binding/StructsAndEnums.cs b/facebookios/binding/StructsAndEnums.cs
index 906fa8b9..502d7865 100644
--- a/facebookios/binding/StructsAndEnums.cs
+++ b/facebookios/binding/StructsAndEnums.cs
@@ -22,7 +22,8 @@ public enum ErrorCode : long
GraphRequestNonTextMimeTypeReturned,
GraphRequestProtocolMismatch,
GraphRequestGraphAPI,
- DialogUnavailable
+ DialogUnavailable,
+ AccessTokenRequired
}
[Native]
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample.sln b/facebookios/samples/FacebookiOSSample/FacebookiOSSample.sln
index ddf6eb4c..41d34a12 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample.sln
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample.sln
@@ -3,6 +3,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FacebookiOSSample", "FacebookiOSSample\FacebookiOSSample.csproj", "{FB530EE3-BAED-46B1-9703-D33D85E58A92}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook", "..\..\binding\Facebook.csproj", "{B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|iPhoneSimulator = Debug|iPhoneSimulator
@@ -13,6 +15,18 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Debug|iPhone.ActiveCfg = Debug|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Debug|iPhone.Build.0 = Debug|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Release|iPhone.ActiveCfg = Release|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Release|iPhone.Build.0 = Release|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{FB530EE3-BAED-46B1-9703-D33D85E58A92}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{FB530EE3-BAED-46B1-9703-D33D85E58A92}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{FB530EE3-BAED-46B1-9703-D33D85E58A92}.Debug|iPhone.ActiveCfg = Debug|iPhone
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/AppDelegate.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/AppDelegate.cs
index b7683099..8b02e13c 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/AppDelegate.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/AppDelegate.cs
@@ -2,7 +2,7 @@
using UIKit;
using Facebook.CoreKit;
-namespace FBExam
+namespace FacebookiOSSample
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/CustomCheckboxElement.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/CustomCheckboxElement.cs
index d2a37081..3eed4f81 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/CustomCheckboxElement.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/CustomCheckboxElement.cs
@@ -1,7 +1,7 @@
using System;
using MonoTouch.Dialog;
-namespace FBExam
+namespace FacebookiOSSample
{
public class CustomCheckboxElement : CheckboxElement
{
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/CustomStringElement.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/CustomStringElement.cs
index 390ea76c..d753434d 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/CustomStringElement.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/CustomStringElement.cs
@@ -3,7 +3,7 @@
using Foundation;
using MonoTouch.Dialog;
-namespace FBExam
+namespace FacebookiOSSample
{
public class CustomStringElement : StringElement
{
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/FacebookiOSSample.csproj b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/FacebookiOSSample.csproj
index b62fee34..f921ba1c 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/FacebookiOSSample.csproj
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/FacebookiOSSample.csproj
@@ -59,7 +59,7 @@
full
false
bin\iPhone\Debug
- DEBUG;ENABLE_TEST_CLOUD;
+ DEBUG;
prompt
4
false
@@ -71,6 +71,8 @@
true
+
+
@@ -78,9 +80,6 @@
-
- ..\packages\Xamarin.Facebook.4.2.0.0\lib\Xamarin.iOS10\Facebook.dll
-
@@ -92,7 +91,6 @@
-
@@ -111,4 +109,10 @@
+
+
+ {B6F34C95-4E37-44F3-AB6A-3DD7DBB61789}
+ Facebook
+
+
\ No newline at end of file
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/ListDetailViewController.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/ListDetailViewController.cs
index 1ba6b8f6..007653d4 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/ListDetailViewController.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/ListDetailViewController.cs
@@ -12,7 +12,7 @@
using Facebook.LoginKit;
using CoreGraphics;
-namespace FBExam
+namespace FacebookiOSSample
{
public partial class ListDetailViewController : DialogViewController
{
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/ListViewController.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/ListViewController.cs
index 03037302..106a43c6 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/ListViewController.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/ListViewController.cs
@@ -10,15 +10,15 @@
using Facebook.CoreKit;
-namespace FBExam
+namespace FacebookiOSSample
{
public partial class ListViewController : DialogViewController
{
public ListViewController (FacebookListType type) : base (UITableViewStyle.Grouped, null, true)
{
- var kindListName = type == FacebookListType.Friends ? "Friendlists" : "Groups";
+ var kindListName = type == FacebookListType.Friends ? "friendlists?fields=id,name" : "groups";
- Root = new RootElement (kindListName);
+ Root = new RootElement (type == FacebookListType.Friends ? "Friendlists" : "Managed Groups");
// Depends of what you want to see, list all your groups or all your friendslist that you have
var request = new GraphRequest ("/" + Profile.CurrentProfile.UserID + "/" + kindListName, null, AccessToken.CurrentAccessToken.TokenString, null, "GET");
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/Main.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/Main.cs
index 4df3a345..b848fc92 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/Main.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/Main.cs
@@ -1,6 +1,6 @@
using UIKit;
-namespace FBExam
+namespace FacebookiOSSample
{
public class Application
{
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/MainViewController.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/MainViewController.cs
index 4d2a5c7d..1407932f 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/MainViewController.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/MainViewController.cs
@@ -9,7 +9,7 @@
using CoreGraphics;
using Foundation;
-namespace FBExam
+namespace FacebookiOSSample
{
public partial class MainViewController : DialogViewController
{
@@ -84,7 +84,7 @@ public override void ViewDidLoad ()
new CustomCheckboxElement ("Birthday", () => CheckReadPermission ("user_birthday")),
new CustomCheckboxElement ("Hometown", () => CheckReadPermission ("user_hometown")),
new CustomCheckboxElement ("Friendlists", () => CheckReadPermission ("read_custom_friendlists")),
- new CustomCheckboxElement ("Groups", () => CheckReadPermission ("user_groups"))
+ new CustomCheckboxElement ("Managed Groups", () => CheckReadPermission ("user_managed_groups"))
};
// The user image profile is set automatically once is logged in
@@ -206,8 +206,8 @@ void AddActionsSection ()
NavigationController.PushViewController (new ListViewController (FacebookListType.Friends), true);
}));
- if (AccessToken.CurrentAccessToken.HasGranted ("user_groups"))
- actionsSection.Add (new StringElement ("See Groups", () => {
+ if (AccessToken.CurrentAccessToken.HasGranted ("user_managed_groups"))
+ actionsSection.Add (new StringElement ("See Managed Groups", () => {
NavigationController.PushViewController (new ListViewController (FacebookListType.Groups), true);
}));
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/MainViewController.designer.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/MainViewController.designer.cs
index e1f2a125..66f04fd2 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/MainViewController.designer.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/MainViewController.designer.cs
@@ -9,7 +9,7 @@
using System.CodeDom.Compiler;
using UIKit;
-namespace FBExam
+namespace FacebookiOSSample
{
[Register ("ViewController")]
partial class MainViewController
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/PhotoViewController.cs b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/PhotoViewController.cs
index 738da909..584f18e4 100644
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/PhotoViewController.cs
+++ b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/PhotoViewController.cs
@@ -12,7 +12,7 @@
using Facebook.ShareKit;
using Facebook.CoreKit;
-namespace FBExam
+namespace FacebookiOSSample
{
public partial class PhotoViewController : DialogViewController
{
diff --git a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/packages.config b/facebookios/samples/FacebookiOSSample/FacebookiOSSample/packages.config
deleted file mode 100644
index a5b59abc..00000000
--- a/facebookios/samples/FacebookiOSSample/FacebookiOSSample/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/facebookios/samples/FacebookiOSSample/packages/Xamarin.Facebook.4.2.0.0/Xamarin.Facebook.4.2.0.0.nupkg b/facebookios/samples/FacebookiOSSample/packages/Xamarin.Facebook.4.2.0.0/Xamarin.Facebook.4.2.0.0.nupkg
deleted file mode 100644
index 1220d94a..00000000
Binary files a/facebookios/samples/FacebookiOSSample/packages/Xamarin.Facebook.4.2.0.0/Xamarin.Facebook.4.2.0.0.nupkg and /dev/null differ
diff --git a/facebookios/samples/FacebookiOSSample/packages/repositories.config b/facebookios/samples/FacebookiOSSample/packages/repositories.config
deleted file mode 100644
index 91442501..00000000
--- a/facebookios/samples/FacebookiOSSample/packages/repositories.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file