PostLink Method

Facebook API Wrapper

Collapse image Expand Image Copy image CopyHover image
Posts a Link on behalf of the loggedin user to this user's wall

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

Syntax

C#
public Link PostLink(
	string i_Url,
	string i_Message = null,
	string i_PrivacyParameterValue = null
)
Visual Basic
Public Function PostLink ( _
	i_Url As String, _
	Optional i_Message As String = Nothing, _
	Optional i_PrivacyParameterValue As String = Nothing _
) As Link
Visual C++
public:
Link^ PostLink(
	String^ i_Url, 
	String^ i_Message = nullptr, 
	String^ i_PrivacyParameterValue = nullptr
)

Parameters

i_Url
Type: System..::..String
The url of the link to post
i_Message (Optional)
Type: System..::..String
A message to write on the post (optional)
i_PrivacyParameterValue (Optional)
Type: System..::..String
a string representing the privacy parameter value.

Must be in the "{'value': 'CUSTOM|EVERYONE|SELF|ALL_FRIENDS|FRIEND_OF_FRIENDS', 'allow': '{friend-list-id1},{friend-list-id2},{friend-id1},{friend-id2}', 'deny': 'friend-list-id1,friend-list-id2,friend-id1,friend-id2'}

NOTE: allow/deny lists are only allowed when 'value' is set top 'CUSTOM'

described here: https://developers.facebook.com/docs/reference/api/privacy-parameter

Return Value

The newly created Linkobject

Remarks

You can post a status message on behalf of the user by issuing an HTTP POST request to PROFILE_ID/feed

.NET Framework Security

Permission Description
publish_stream

See Also