'; $app_secret = ''; $app_id = ''; $id = ''; $api = Api::init($app_id, $app_secret, $access_token); $api->setLogger(new CurlLogger()); $fields = array( ); $params = array( 'name' => 'Image crop creative', 'object_story_spec' => array('page_id' => '','link_data' => array('image_crops' => array('100x100' => array(array(0,0),array(100,100))),'image_hash' => '','link' => '','message' => 'Ad message')), ); echo json_encode((new AdAccount($id))->createAdCreative( $fields, $params )->exportAllData(), JSON_PRETTY_PRINT);