Iran had been invited to attend the G-8 meeting on Afghanistan , because anti-drug efforts in Afghanistan have been identified as a key area where the United States and Iran can work together--part of President Barack Obama 's outreach effort .