473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2130
Niheel
2,460 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

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

Similar topics

7
by: Job Lot | last post by:
How can I terminate console application in Try…Catch…Finally…End Try block so that code in Finally gets executed. If I use End statement Finally does not get executed. Following is my code...
1
by: Sean | last post by:
Hi, I have a problem running my application. When I run my application, the window program starts as being minimized on the taskbar and the worst thing is that I can't even maximize or put it...
4
by: Jassim Rahma | last post by:
Hi, I have developed a Pocket PC application and I want to know how to terminate it? I used Aplication.Exit() but the program will still be running in the process list!! Many Thanks,...
13
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that...
5
by: Michael G. | last post by:
Hello! We developed a small application using VS2005/ASP.NET 2. On development station it worked well. Then we published the site to a directory on the development. comp., and brought to the...
2
by: CWogksch | last post by:
Hello, Everyone... My name is Chris Wogksch. I have a point of sale application developed in VB6 using MS Access 2003 as the database. I've been running versions of this app for over eight...
3
by: noisefree | last post by:
Hello, I have a problem on an application I am developing: This C# Windows Application calls a C# Web Service, which it uses the SourceSafeTypeLib DLL to interact with Visual Source Safe 6. ...
1
by: noisefree | last post by:
Hello, I have a problem on an application I am developing: This C# Windows Application calls a C# Web Service, which it uses the SourceSafeTypeLib DLL to interact with Visual Source Safe 6. ...
1
by: bradwest1217 | last post by:
I am having a problem running a server command line executable from my web application. What is happening is I cannot make a database connection using the command line application (written in...
1
by: vijayakumar | last post by:
hi all I'm beginner in CORBA Server-Client application development. My server- client application was worked well and i have tested it too. Due to some Network problem we have rebooted our...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.