facebook application problem?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yusuf Ali
    New Member
    • Sep 2010
    • 7

    facebook application problem?

    you can see this: http://disavur.com/facebook
    this is my code:

    Code:
    $user = $facebook->getUser();
    
    if($user) { 
        try {
           $statusUpdate = $facebook->api('/me/feed', 'post',
                     array('name'=>'My APP on Facebook','message'=> 'I am here working',
                     'privacy'=> array('value'=>'CUSTOM','friends'=>'SELF'),
                     'description'=>'testing my description',
                     'picture'=>'https://fbcdn-photos-a.akamaihd.net/mypicture.gif',
                     'caption'=>'apps.facebook.com/myapp','link'=>'http://apps.facebook.com/myapp'));
         } catch (FacebookApiException $e) {
              echo "error";;
        }
    }
    else
    {
    
        echo "<a href='" . $facebook->getLoginUrl() . "'>login</a>";
    }
    This code returning "error".. Where is the error?
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2432

    #2
    You are ending echo "error";; with double ;;
    niheel @ bytes

    Comment

    • Yusuf Ali
      New Member
      • Sep 2010
      • 7

      #3
      now i see this: (#100) The post's links must direct to the application's connect or canvas URL.

      Comment

      Working...