Posting content (no dialog)

Unlike ui.share(), the share method from the activity module will post data through the required provider without displaying a dialog. Contents are pre-filed.

Oahu.activity.share( providerName, [opts], [callback] )

Where :

This method requires the user to be logged in with Oahu through the required provider. If it is not the case, the login box will appear.

See the following examples for more details.

Example

Oahu.activity.share("Facebook", { 
  message: "Text to post to the user's Facebook wall" 
})

Here are the options you may send to the method :

If no option is sent, the system will try to find some data on the bage based on the OpenGraph tags