Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[facebookios] Updated some comments on sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Soto committed May 7, 2015
1 parent 40fbb81 commit 88fed98
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ public partial class DVCLogIn : DialogViewController
LoginButton loginView;
ProfilePictureView pictureView;

// For extensive list of available extended permissions refer to
// By default you only get the "public_profile" read permissions
// For extensive list of available publish and read permissions refer to
// https://developers.facebook.com/docs/reference/api/permissions/
string[] extendedPermissions = new [] {
string[] readPermissions = new [] {
"public_profile",
"email",
"user_friends"
};
string[] publishPermissions = new [] { "" };
string[] publishPermissions = new [] { "publish_actions" };

public DVCLogIn () : base (UITableViewStyle.Grouped, null, true)
{
Expand All @@ -60,15 +61,11 @@ public DVCLogIn () : base (UITableViewStyle.Grouped, null, true)
}
});

AccessToken.Notifications.ObserveDidChange ((sender, e) => {
Console.WriteLine (e.NewToken.Permissions);
});

// If you use Native login behavior, you will get all read and publish permisions
// otherwise, set the Read and Publish permissions you want to get
loginView = new LoginButton (new CGRect (51, 0, 218, 46)) {
LoginBehavior = LoginBehavior.Native,
ReadPermissions = extendedPermissions,
ReadPermissions = readPermissions,
// You can ask permissions to publish right now
// or later, to see a proper way of how to ask permissions
// PublishPermissions = publishPermissions
};

Expand Down

0 comments on commit 88fed98

Please sign in to comment.