CreateAlbum Method

Facebook API Wrapper

Collapse image Expand Image Copy image CopyHover image
Create a new Album

Namespace: FacebookWrapper.ObjectModel
Assembly: FbGraphApiWrapper (in FbGraphApiWrapper.dll) Version: 6.2.1.2 (6.2.1.2)

Syntax

C#
public Album CreateAlbum(
	string i_Name,
	string i_Description = null,
	string i_Privacy = null
)
Visual Basic
Public Function CreateAlbum ( _
	i_Name As String, _
	Optional i_Description As String = Nothing, _
	Optional i_Privacy As String = Nothing _
) As Album
Visual C++
public:
Album^ CreateAlbum(
	String^ i_Name, 
	String^ i_Description = nullptr, 
	String^ i_Privacy = nullptr
)

Parameters

i_Name
Type: System..::..String
the name of the album
i_Description (Optional)
Type: System..::..String

[Missing <param name="i_Description"/> documentation for "M:FacebookWrapper.ObjectModel.User.CreateAlbum(System.String,System.String,System.String)"]

i_Privacy (Optional)
Type: System..::..String
A JSON-encoded object that defines the privacy setting for the album

{"value":"SELF"} (see details below)

Only the user can specify the privacy settings for the post.

Privacy Policy: Any non-default privacy setting must be intentionally chosen by the user. You may not set a custom privacy setting unless the user has proactively specified that they want this non-default setting

The privacy parameter is a JSON-encoded object that contains one or more of the following string fields:

value: The privacy value for the object, specify one of EVERYONE, CUSTOM, ALL_FRIENDS, NETWORKS_FRIENDS, FRIENDS_OF_FRIENDS, SELF. friends: For CUSTOM settings, this indicates which users can see the object. Can be one of EVERYONE, NETWORKS_FRIENDS (when the object can be seen by networks and friends), FRIENDS_OF_FRIENDS, ALL_FRIENDS, SOME_FRIENDS, SELF, or NO_FRIENDS (when the object can be seen by a network only). networks: For CUSTOM settings, specify a comma-separated list of network IDs that can see the object, or 1 for all of a user's networks. allow: When friends is set to SOME_FRIENDS, specify a comma-separated list of user IDs and friend list IDs that can see the post. deny: When friends is set to SOME_FRIENDS, specify a comma-separated list of user IDs and friend list IDs that cannot see the post.

Return Value

The newly created Albumobject

Remarks

You can create an album for a user by issuing an HTTP POST request to PROFILE_ID/albums

.NET Framework Security

Permission Description
user_photos

See Also