added facebook javascript API support