Edit: Scroll down to latest posts or click here:
http://forum.codecall.net/php-forum/...tml#post188331
Last edited by iConquest; 07-31-2009 at 09:08 AM.
Do you have it all installed correctly?
Are you designing for experience or for the ability? You could use Ping.fm / Update all of your social networks at once!
I thought I installed it correctly and double checked but it still has the same error.
I'm doing it for the ability and the experience.
I don't want to update all social networking sites at the same time - I'd prefer to do them separately.
There is probably a much easier way to do what I'm trying to do; All I want is a box for me to put my status in and a button to submit it.
Ok, I scrapped most of the stuff I did before and started from scratch. I've now got a page that will update my Facebook status:
Currently, whenever I load that page, it will post "STATUS" as my facebook message.Code:<html> <body> <a href="http://www.facebook.com/authorize.php?api_key=API&v=1.0&ext_perm=publish_stream ">Click here if account is has not got extended permissions.</a><br /><br /> </body> </html> <?php require_once('facebook.php'); $facebook = new Facebook('API','SECRET'); $fb_user = $facebook->require_login(); $facebook->api_client->users_setStatus('STATUS','','',1); ?>
Is there a way to make a form on another page containing a text box and a submit button and whatever I write inside the box gets set as my facebook status?
OI, OI, OI, remove your **** keys boy.
Update:
I wrote this:
But when I submit the form, it sets my facebook status as:Code:<?php
require_once('facebook.php');
$facebook = new Facebook('API','SECRET');
$fb_user = $facebook->require_login();
$facebook->api_client->users_setStatus('". $_POST["status"] ."','','',1);
?>
Instead of what I put in my textbox (with the name 'status').Code:'". $_POST["status"] ."'
Any ideas?
I guess you should only use the $_POST["status"] as first parameter.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
Wow, I'm an idiot. Thanks Orjan
Loving my admin-y page:
![]()
Hey everyone, I have written a full ebook to teach you how to write facebook applications.
Here are some take-aways you get:
1. Covers 20+ functions with step by step instructions.
2. 3000+ lines of fully working example source code - 24 complete PHP facebook scripts.
3. Downloadable for offline browsing.
4. Written for start-up beginners AND seasoned PHP professionals.
5. Content is updated & appended with new content. You'll own access to knowledge about the latest additions to the facebook API.
try it out yourself. You'll be glad you did.
Thousands of developers support themselves with 6 digit incomes in the facebook app industry. See what it can do for you! It's a multi- million dollar industry!
Last edited by Jaan; 10-28-2009 at 01:13 PM. Reason: No advertising..
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks