Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 780447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:04:28+00:00 2026-05-14T20:04:28+00:00

Hey all, I’ve created a widget that will essentially unlock a music track, providing

  • 0

Hey all, I’ve created a widget that will essentially unlock a music track, providing you post to either your twitter account, or facebook wall.

I’ve signed up through facebook connect and I am able to successfully post onto my own wall… but the functionality I’m looking for is to be able to take ones username and password and automatically log in to facebook, and send my desired message. Like I said, it posts on my wall successfully, it’s just not using the username and password from the field to log in to their respective facebooks and post.

    <?php

$facename = $_POST['facename'];
$facepass = $_POST['facepass'];
define('FB_APIKEY', 'my_api_key');

define('FB_SECRET', 'my_secret_phrase_');

define('FB_SESSION', 'my_session_id');

require_once('facebook.php');

echo "post on wall";

try {

$facebook = new Facebook(FB_APIKEY, FB_SECRET);

$facebook->api_client->session_key = FB_SESSION;

$fetch = array('friends' =>

array('pattern' => '.*',

'query' => "select uid2 from friend where uid1={$facename}"));

echo $facebook->api_client->admin_setAppProperties(array('preload_fql' => json_encode($fetch)));

$message = 'I downloaded Automatic Loveletter\'s new single \'To Die For\' here!';

if( $facebook->api_client->stream_publish($message))

echo "Added on FB Wall";

} catch(Exception $e) {

echo $e . "<br />";

}

?>

Any help in the right direction is greatly appreciated! Thanks, Matt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:04:29+00:00Added an answer on May 14, 2026 at 8:04 pm

    Facebook’s API is not really designed to be able to post like Twitter’s API is (or used to be)

    To post on another user’s wall, they have to authorize your application to make posts to their wall. Ideally, they will never give you their username or password. Ever.

    Also note that Twitter’s API is removing Basic HTTP Authentication. Meaning that you will either have to send the user to the Twitter Home Page with a URL-Encoded status parameter to set the message that will be pre-filled in, or the user will have to use OAuth to authorize your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all, I've created a loading/splash screen that loads at the beginning of my
Hey all, I am setting up a PHP web app that will make use
Hey all. I'm integrating a CLR/Assembly-based sproc replacement for an existing sproc that lives
Hey all! I am trying to post a file over Http using Java 1.4.2.
Hey all, I have created a WinForms to handle Persistence Activities using the Windows
Hey all i have an XML file that i am trying to loop though.
Hey all, have a slight problem here. In CakePHP I have a controller that
Hey all i am trying to find some code that would allow me to
Hey all i have created dynamic buttons at runtime and i would like to
Hey all, weird question. My company has an application from another company that records

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.