title: How do I resolve the error "PHP Notice: Use of undefined constant"?
body: <p>I have a strange error message after using the post to wall function. It did successfully post to the wall however i got a very weird strange error.</p>
  
  <blockquote>
    <p>[30-Jan-2012 23:36:49] PHP Notice:  Use of undefined constant message
    - assumed 'message' in C:\www\jetstar\starpick\rewards.php on line 33</p>
    
    <p>[30-Jan-2012 23:36:49] PHP Notice:  Use of undefined constant picture
    - assumed 'picture' in C:\www\jetstar\starpick\rewards.php on line 34</p>
    
    <p>[30-Jan-2012 23:36:49] PHP Notice:  Use of undefined constant link -
    assumed 'link' in C:\www\jetstar\starpick\rewards.php on line 35</p>
    
    <p>[30-Jan-2012 23:36:49] PHP Notice:  Use of undefined constant name -
    assumed 'name' in C:\www\jetstar\starpick\rewards.php on line 36</p>
    
    <p>[30-Jan-2012 23:36:49] PHP Notice:  Use of undefined constant caption
    - assumed 'caption' in C:\www\jetstar\starpick\rewards.php on line 37</p>
  </blockquote>
  
  <p>This is the codes i use</p>
  
  <pre><code>$facebook-&gt;api("/me/feed", "post", array(
      message =&gt; "I have won a ".$prizename,
      picture =&gt; "http://i1172.photobucket.com/albums/r574/092810c/starpicklogo-1.png",
      link =&gt; "https://apps.facebook.com/starpick/",
      name =&gt; "StarPick",
      caption =&gt; "Stand to Win Attractive Prizes!!!"));
  </code></pre>