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.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
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: