468,719 Members | 1,755 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,719 developers. It's quick & easy.

facebook application problem?

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

Expand|Select|Wrap|Line Numbers
  1. $user = $facebook->getUser();
  2.  
  3. if($user) { 
  4.     try {
  5.        $statusUpdate = $facebook->api('/me/feed', 'post',
  6.                  array('name'=>'My APP on Facebook','message'=> 'I am here working',
  7.                  'privacy'=> array('value'=>'CUSTOM','friends'=>'SELF'),
  8.                  'description'=>'testing my description',
  9.                  'picture'=>'https://fbcdn-photos-a.akamaihd.net/mypicture.gif',
  10.                  'caption'=>'apps.facebook.com/myapp','link'=>'http://apps.facebook.com/myapp'));
  11.      } catch (FacebookApiException $e) {
  12.           echo "error";;
  13.     }
  14. }
  15. else
  16. {
  17.  
  18.     echo "<a href='" . $facebook->getLoginUrl() . "'>login</a>";
  19. }
This code returning "error".. Where is the error?
Jul 29 '11 #1
2 1903
Niheel
2,426 Expert Mod 2GB
You are ending echo "error";; with double ;;
Jul 29 '11 #2
now i see this: (#100) The post's links must direct to the application's connect or canvas URL.
Jul 29 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Job Lot | last post: by
1 post views Thread by Sean | last post: by
4 posts views Thread by Jassim Rahma | last post: by
13 posts views Thread by Lee Newson | last post: by
5 posts views Thread by Michael G. | last post: by
1 post views Thread by vijayakumar | last post: by
1 post views Thread by Oskars | last post: by
9 posts views Thread by bryonone | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.