php - Why does this facebook create album code create duplicate albums? -


i have code works fine (in creates album properly). however, creates 2 identical albums. i've tried removing message , privacy (not should have changed anything, still). nothing try changing fact code creates 2 albums. i've gone far comment out ensure code firing , no albums created. have code after post 2 test pictures , posts pictures 1 of groups. however, have exit after code, i've ensured it's code firing.

help, please!

print "creating album\n"; try {     $ret_obj = $facebook->api('/me/albums', 'post', array(         'access_code' => $access_code,         'name' => 'coolest album',         'message' => 'coolest album containing bike stuff',         'privacy' => array('value'=>'everyone'),         )); } catch (exception $e) { print_r($e->getmessage()); } print "album created\n";` 

what version of php using? and, version of facebook api? if use facebook 2.0, need php 5.4 or 5.5. maybe help?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -