Blekk_skriver_ink
New Member
I am using the PHP SDK to try and post a simple action using the Graph API.I have set up an object called 'Competition' and an action called 'Enter'. As such, a user enters a competition.My code is like so:\[code\]try { $statusUpdate = $this->data['facebook']->api('/me/lovepoppycompetition:enter', 'post', array( 'competition' => 'https://apps.facebook.com/lovepoppycompetition/' )); echo '<pre>SUCCESS: '.print_r($statusUpdate, true).'</pre>';} catch(FacebookApiException $e) { echo '<pre>FAILED: '.print_r($e, true).'</pre>'; } \[/code\]I am getting an error returned (FacebookApiException):\[code\](#100) At least one reference object must be specified\[/code\]I'm not really sure why, especially as I am using this code (with different objects/actions) on another app with no issues just fine.It might be worth noting that I haven't submitted the action, although I don't think I have to for it to work for me?Thanks in advance.