facebook.logPurchase()


Type Function

Return value none

See also facebook.*


Overview

Log an app purchase manually. Only use it if you have configured your app not to log purchases automatically.

Syntax

facebook.logPurchase(params)

params required

Table. Contains parameters for the call — see the next section for details.

Parameter Reference

The params table includes parameters for the call.

currency required

String. Name of the currency, e.g. 'USD'.

value required

Number. Amount of money.

params optional

Table. Additional parameters of the purchase event, e.g. {fb_description = 'custom description'}, string keys and string or number values, see Ffacebook SDK documentation for additional parameters.