3

case 1 : when i register via Facebook,i need to confirm the user and activate the newsletter subscription programmatically.

your support will help much more, thanks advance.

1

You can do this easily :

$customer=Mage::getModel('customer/customer')->setWebsiteId(Mage::app()->getStore()->getWebsiteId())->loadByEmail($email);
$customer->setConfirmation(true);
$customer->save();

for case of newsletter subscription try below:

$customer->setIsSubscribed(true);
    $customer->save();

Not the answer you're looking for? Browse other questions tagged or ask your own question.