Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Update facebook status on an external site.

  1. #1
    iConquest's Avatar
    iConquest is offline Newbie
    Join Date
    Jul 2009
    Posts
    18
    Rep Power
    0

    Update facebook status on an external site.

    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.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: Update facebook status on an external site.

    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!

  4. #3
    iConquest's Avatar
    iConquest is offline Newbie
    Join Date
    Jul 2009
    Posts
    18
    Rep Power
    0

    Re: Update facebook status on an external site.

    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.

  5. #4
    iConquest's Avatar
    iConquest is offline Newbie
    Join Date
    Jul 2009
    Posts
    18
    Rep Power
    0

    Re: Update facebook status on an external site.

    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:

    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);
    ?>
    Currently, whenever I load that page, it will post "STATUS" as my facebook message.

    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?

  6. #5
    TkTech's Avatar
    TkTech is offline The Crazy One
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,412
    Blog Entries
    1
    Rep Power
    31

    Re: Update facebook status on an external site.

    OI, OI, OI, remove your **** keys boy.

  7. #6
    iConquest's Avatar
    iConquest is offline Newbie
    Join Date
    Jul 2009
    Posts
    18
    Rep Power
    0

    Re: Update facebook status on an external site.

    Quote Originally Posted by TkTech View Post
    OI, OI, OI, remove your **** keys boy.
    Whoops, thanks.

  8. #7
    iConquest's Avatar
    iConquest is offline Newbie
    Join Date
    Jul 2009
    Posts
    18
    Rep Power
    0

    Exclamation Re: Update facebook status on an external site.

    Update:
    I wrote this:
    Code:
    <?php

    require_once('facebook.php');

    $facebook = new Facebook('API','SECRET');

    $fb_user $facebook->require_login();

    $facebook->api_client->users_setStatus('". $_POST["status"] ."','','',1);
    ?>
    But when I submit the form, it sets my facebook status as:

    Code:
    '". $_POST["status"] ."'
    Instead of what I put in my textbox (with the name 'status').

    Any ideas?

  9. #8
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: Update facebook status on an external site.

    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

  10. #9
    iConquest's Avatar
    iConquest is offline Newbie
    Join Date
    Jul 2009
    Posts
    18
    Rep Power
    0

    Re: Update facebook status on an external site.

    Wow, I'm an idiot. Thanks Orjan

    Loving my admin-y page:


  11. #10
    hunterbdb is offline Newbie
    Join Date
    Oct 2009
    Posts
    1
    Rep Power
    0

    Re: Update facebook status on an external site.

    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..

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 10-17-2011, 02:13 PM
  2. MySQL Update, gives no error or update
    By bbqroast in forum PHP Development
    Replies: 5
    Last Post: 07-19-2011, 05:17 AM
  3. Update command tries to update the wrong table...
    By Shaddix in forum Visual Basic Programming
    Replies: 0
    Last Post: 01-08-2010, 08:18 AM
  4. Update-Status
    By Grub in forum Linux Applications
    Replies: 3
    Last Post: 10-23-2007, 09:23 AM
  5. Content of external site in a frame
    By prays in forum Java Help
    Replies: 1
    Last Post: 06-13-2007, 02:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts